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.
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.
(abs x)
(abs x math-context)
Return the absolute value of x. If x is a BigDecimal, abs takes an optional math-context argument.
Return the absolute value of x. If x is a BigDecimal, abs takes an optional math-context argument.
(abs x)
Return the abs of x.
Return the abs of x.
(acos x)
Return the acos of x.
Return the acos of x.
(approx= x y eps)
Return true if the absolute value of the difference between x and y is less than eps.
Return true if the absolute value of the difference between x and y is less than eps.
(asin x)
Return the asin of x.
Return the asin of x.
(atan x)
Return the atan of x.
Return the atan of x.
(atan2 x y)
Return the atan2 of x and y.
Return the atan2 of x and y.
(ceil x)
Return the ceil of x.
Return the ceil of x.
(conjugate x)
Return the conjugate of x.
Return the conjugate of x.
(cos x)
Return the cos of x.
Return the cos of x.
(exp x)
Return the exp of x.
Return the exp of x.
(floor x)
Return the floor of x.
Return the floor of x.
(log x)
Return the log of x.
Return the log of x.
(pow x y)
Return the pow of x and y.
Return the pow of x and y.
(round x)
(round x math-context)
Round x. If x is a BigDecimal, a math-context argument is also required: (round x math-context) If x is a Ratio, (round x) converts x to a double and rounds; (round x math-context) converts x to a BigDecimal and rounds.
Round x. If x is a BigDecimal, a math-context argument is also required: (round x math-context) If x is a Ratio, (round x) converts x to a double and rounds; (round x math-context) converts x to a BigDecimal and rounds.
(round x)
Return the round of x.
Return the round of x.
(sgn x)
Return the sign of x (-1, 0, or 1).
Return the sign of x (-1, 0, or 1).
(sin x)
Return the sin of x.
Return the sin of x.
(sqr x)
Return the square of x.
Return the square of x.
(sqrt x)
Return the sqrt of x.
Return the sqrt of x.
(tan x)
Return the tan of x.
Return the tan of x.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close