In 2014, where do I get Clojure trigonometry functions like sin and atan2 ?
I see some of contrib.math is now in https://clojure.github.io/math.numeric-tower/ but that doesn't seem to have these functions.
You can call functions in the Java Math class from Clojure.
Java: Math.sin(x)
Clojure: (Math/sin x)
The Incanter statistical package for Clojure includes acos, asin, atan, atan2, cos, sin, and tan, along with many other potentially useful mathematical functions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With