An open API service indexing awesome lists of open source software.

https://github.com/bobbicodes/trig

Trigonometry with Clojurescript
https://github.com/bobbicodes/trig

Last synced: 3 months ago
JSON representation

Trigonometry with Clojurescript

Awesome Lists containing this project

README

          

# trig

Learn trig with Clojure!

![Interactive graph](./sinusoid.gif)

![Pythagorean identities](./trig1.png)

* Calculate and render an angle's sine/cosine using the Pythagorean identity
* Render triangles and solve for angles/sides using Law of Sines/Cosines

![Triangles](./trig2.png)

![Law of sines](./trig3.png)

## Development

```bash
$ npm install
added 97 packages from 106 contributors in 5.984s
```

Start the development process by running:

```bash
$ npx shadow-cljs watch app
...
[:app] Build completed. (134 files, 35 compiled, 0 warnings, 5.80s)
```

Or simply `jack-in` from your editor. Your app will be served at: at [http://localhost:8080](http://localhost:8080).

## Production build

```bash
npx shadow-cljs release app
```