Liking cljdoc? Tell your friends :D

clojure.algo.generic.math-functions

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.
raw docstring

absclj/s≠multimethod

clj
(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.
cljs
(abs x)

Return the abs of x.

Return the abs of x.
source (clj)source (cljs)raw docstring

acosclj/smultimethod

(acos x)

Return the acos of x.

Return the acos of x.
source (clj)source (cljs)raw docstring

approx=clj/s

(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.
source (clj)source (cljs)raw docstring

asinclj/smultimethod

(asin x)

Return the asin of x.

Return the asin of x.
source (clj)source (cljs)raw docstring

atanclj/smultimethod

(atan x)

Return the atan of x.

Return the atan of x.
source (clj)source (cljs)raw docstring

atan2clj/smultimethod

(atan2 x y)

Return the atan2 of x and y.

Return the atan2 of x and y.
source (clj)source (cljs)raw docstring

ceilclj/smultimethod

(ceil x)

Return the ceil of x.

Return the ceil of x.
source (clj)source (cljs)raw docstring

conjugateclj/smultimethod

(conjugate x)

Return the conjugate of x.

Return the conjugate of x.
source (clj)source (cljs)raw docstring

cosclj/smultimethod

(cos x)

Return the cos of x.

Return the cos of x.
source (clj)source (cljs)raw docstring

expclj/smultimethod

(exp x)

Return the exp of x.

Return the exp of x.
source (clj)source (cljs)raw docstring

floorclj/smultimethod

(floor x)

Return the floor of x.

Return the floor of x.
source (clj)source (cljs)raw docstring

logclj/smultimethod

(log x)

Return the log of x.

Return the log of x.
source (clj)source (cljs)raw docstring

powclj/smultimethod

(pow x y)

Return the pow of x and y.

Return the pow of x and y.
source (clj)source (cljs)raw docstring

rintcljmultimethod

(rint x)

Return the rint of x.

Return the rint of x.
sourceraw docstring

roundclj/s≠multimethod

clj
(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.
cljs
(round x)

Return the round of x.

Return the round of x.
source (clj)source (cljs)raw docstring

sgnclj/smultimethod

(sgn x)

Return the sign of x (-1, 0, or 1).

Return the sign of x (-1, 0, or 1).
source (clj)source (cljs)raw docstring

sinclj/smultimethod

(sin x)

Return the sin of x.

Return the sin of x.
source (clj)source (cljs)raw docstring

sqrclj/smultimethod

(sqr x)

Return the square of x.

Return the square of x.
source (clj)source (cljs)raw docstring

sqrtclj/smultimethod

(sqrt x)

Return the sqrt of x.

Return the sqrt of x.
source (clj)source (cljs)raw docstring

tanclj/smultimethod

(tan x)

Return the tan of x.

Return the tan of x.
source (clj)source (cljs)raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close