# Are there any cross-platform trigonometry libraries?

**URL:** https://clojureverse.org/t/are-there-any-cross-platform-trigonometry-libraries/9494
**Category:** General Questions
**Created:** [November 8, 2022, 3:14pm UTC](https://clojureverse.org/t/are-there-any-cross-platform-trigonometry-libraries/9494 "2022-11-08T15:14:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![seabass](https://clojureverse.org/user_avatar/clojureverse.org/seabass/32/4341_2.png) [@seabass](https://clojureverse.org/u/seabass)
#### Post date: [November 8, 2022, 3:14pm UTC](https://clojureverse.org/t/are-there-any-cross-platform-trigonometry-libraries/9494/1 "2022-11-08T15:14:41Z")

</div>

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](https://www.clojure-toolbox.com/) 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!

---

<div class="post-metadata">

### Author: ![joinr](https://clojureverse.org/user_avatar/clojureverse.org/joinr/32/1861_2.png) [@joinr](https://clojureverse.org/u/joinr)
#### Post date: [November 8, 2022, 4:12pm UTC](https://clojureverse.org/t/are-there-any-cross-platform-trigonometry-libraries/9494/2 "2022-11-08T16:12:06Z")

</div>

I just noticed [cljs-math](https://github.com/quoll/cljs-math) which appears to be merged into cljs now. So the new clojure.math ns should cover the basics.

---

<div class="post-metadata">

### Author: ![seabass](https://clojureverse.org/user_avatar/clojureverse.org/seabass/32/4341_2.png) [@seabass](https://clojureverse.org/u/seabass)
#### Post date: [November 9, 2022, 3:28pm UTC](https://clojureverse.org/t/are-there-any-cross-platform-trigonometry-libraries/9494/3 "2022-11-09T15:28:39Z")

</div>

Thank you, @joinr! The new `clojure.math` works perfectly 🙂

---

<div class="post-metadata">

### Author: ![system](https://clojureverse.org/uploads/default/original/2X/5/51079bf9e4b7d9466242c06cf1e43b9f8bd6da14.png) [@system](https://clojureverse.org/u/system)
#### Post date: [May 11, 2023, 3:28am UTC](https://clojureverse.org/t/are-there-any-cross-platform-trigonometry-libraries/9494/4 "2023-05-11T03:28:39Z")

</div>

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