API for clojure.algo.generic.math-functions
-
by Konrad Hinsen
Full namespace name:
clojure.algo.generic.math-functions
Overview
Generic math function interface
This library defines generic versions of common mathematical
functions such as sqrt or sin as multimethods that can be
defined for any type.
Public Variables and Functions
abs
function
Usage: (abs x)
Return the abs of x.
Source
acos
function
Usage: (acos x)
Return the acos of x.
Source
approx=
function
Usage: (approx= x y eps)
Return true if the absolute value of the difference between x and y
is less than eps.
Source
asin
function
Usage: (asin x)
Return the asin of x.
Source
atan
function
Usage: (atan x)
Return the atan of x.
Source
atan2
function
Usage: (atan2 x y)
Return the atan2 of x and y.
Source
ceil
function
Usage: (ceil x)
Return the ceil of x.
Source
conjugate
function
Usage: (conjugate x)
Return the conjugate of x.
Source
cos
function
Usage: (cos x)
Return the cos of x.
Source
defmacro-
macro
Usage: (defmacro- name & decls)
Same as defmacro but yields a private definition
Source
exp
function
Usage: (exp x)
Return the exp of x.
Source
floor
function
Usage: (floor x)
Return the floor of x.
Source
log
function
Usage: (log x)
Return the log of x.
Source
pow
function
Usage: (pow x y)
Return the pow of x and y.
Source
rint
function
Usage: (rint x)
Return the rint of x.
Source
round
function
Usage: (round x)
Return the round of x.
Source
sgn
function
Usage: (sgn x)
Return the sign of x (-1, 0, or 1).
Source
sin
function
Usage: (sin x)
Return the sin of x.
Source
sqr
function
Usage: (sqr x)
Return the square of x.
Source
sqrt
function
Usage: (sqrt x)
Return the sqrt of x.
Source
tan
function
Usage: (tan x)
Return the tan of x.
Source