Are there any cross-platform trigonometry libraries?

Hello all! I’m writing a piece of software which needs to do some trigonometric calculations. It seems as though, on the JVM-based implementation of Clojure, most people use the Java interoperability functions to perform these calculations. However, I would like my software to run as ClojureScript too. Surprisingly, there was no sign of a CLJC basic mathematics library even on the Clojure Toolbox site.

Does anyone happen to know of (or has written!) a library that allows you to call basic mathematical functions without regard to the platform? Thanks!

I just noticed cljs-math which appears to be merged into cljs now. So the new clojure.math ns should cover the basics.

Thank you, @joinr! The new clojure.math works perfectly :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.