Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sebhoss/math-clj

Common math functions for Clojure
https://github.com/sebhoss/math-clj

Last synced: 14 days ago
JSON representation

Common math functions for Clojure

Awesome Lists containing this project

README

        

h1. math-clj "!https://travis-ci.org/sebhoss/math-clj.png!":https://travis-ci.org/sebhoss/math-clj "!https://www.ohloh.net/p/math-clj/widgets/project_thin_badge.gif!":https://www.ohloh.net/p/math-clj/

p. Common math related functions, written in Clojure.

h2. Usage

p. The library lives under @com.github.sebhoss@ and is divided into the following namespaces and functions:

h3. math/

p. Various math functions (most from JDK/Math): @e@, @Pi@, @mean@, @abs@, @floor@, @ceil@, @round@, @sgn@, @signum@, @sgn-eq?@, @sgn-different?@, @ln@, @log10@, @exp@, @pow@, @sqrt@, @root@, @sin@, @cos@, @tan@, @asin@, @acos@, @atan@, @sinh@, @cosh@, @tanh@

h3. predicate/

* @(not-nil? x)@ - true if x is not nil, false otherwise
* @(≈ x y epsilon)@ - true if x is within epsilon of y, false otherwise
* @(≈0 x epsilon)@ - true if x is within epsilon of zero

h2. Integration

h3. Maven

bc.

com.github.sebhoss
math-clj
[1.0.0,2.0.0)

h3. Leiningen

bc. [com.github.sebhoss/math-clj "[1.0.0,2.0.0)"]

h2. License

p. This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See "http://www.wtfpl.net/":http://www.wtfpl.net/ for more details.