math-clj
Common math related functions, written in Clojure.
Usage
The library lives under com.github.sebhoss
and is divided into the following namespaces and functions:
math/
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
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
Integration
Maven
<dependencies>
<dependency>
<groupId>com.github.sebhoss</groupId>
<artifactId>math-clj</artifactId>
<version>[1.0.0,2.0.0)</version>
</dependency>
</dependencies>
Leiningen
[com.github.sebhoss/math-clj "[1.0.0,2.0.0)"]
License
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/ for more details.