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

abscljmultimethod

(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.
sourceraw docstring

acoscljmultimethod

(acos x)

Return the acos of x.

Return the acos of x.
sourceraw docstring

approx=clj

(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.
sourceraw docstring

asincljmultimethod

(asin x)

Return the asin of x.

Return the asin of x.
sourceraw docstring

atancljmultimethod

(atan x)

Return the atan of x.

Return the atan of x.
sourceraw docstring

atan2cljmultimethod

(atan2 x y)

Return the atan2 of x and y.

Return the atan2 of x and y.
sourceraw docstring

ceilcljmultimethod

(ceil x)

Return the ceil of x.

Return the ceil of x.
sourceraw docstring

conjugatecljmultimethod

(conjugate x)

Return the conjugate of x.

Return the conjugate of x.
sourceraw docstring

coscljmultimethod

(cos x)

Return the cos of x.

Return the cos of x.
sourceraw docstring

defmacro-cljmacro

(defmacro- name & decls)

Same as defmacro but yields a private definition

Same as defmacro but yields a private definition
sourceraw docstring

expcljmultimethod

(exp x)

Return the exp of x.

Return the exp of x.
sourceraw docstring

floorcljmultimethod

(floor x)

Return the floor of x.

Return the floor of x.
sourceraw docstring

logcljmultimethod

(log x)

Return the log of x.

Return the log of x.
sourceraw docstring

powcljmultimethod

(pow x y)

Return the pow of x and y.

Return the pow of x and y.
sourceraw docstring

rintcljmultimethod

(rint x)

Return the rint of x.

Return the rint of x.
sourceraw docstring

roundcljmultimethod

(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.
sourceraw docstring

sgncljmultimethod

(sgn x)

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

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

sincljmultimethod

(sin x)

Return the sin of x.

Return the sin of x.
sourceraw docstring

sqrcljmultimethod

(sqr x)

Return the square of x.

Return the square of x.
sourceraw docstring

sqrtcljmultimethod

(sqrt x)

Return the sqrt of x.

Return the sqrt of x.
sourceraw docstring

tancljmultimethod

(tan x)

Return the tan of x.

Return the tan of x.
sourceraw docstring

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

× close