Liking cljdoc? Tell your friends :D

fogus.math

Math utilities

Math utilities
raw docstring

order-apart?clj

(order-apart? a b)
(order-apart? n a b)

Returns true if a and b differ by at least n orders of magnitude. With two arguments, defaults to 1.0 order of magnitude.

Returns true if a and b differ by _at least_ n orders of magnitude.
With two arguments, defaults to 1.0 order of magnitude.
raw docstring

order-distanceclj

(order-distance a b)

Returns the base-10 logarithmic (order of magnititude) distance between two positive numbers. The result is independent of argument order.

Returns the base-10 logarithmic (order of magnititude) distance between
two positive numbers. The result is independent of argument order.
raw docstring

within-order?clj

(within-order? a b)

Returns true if a and b are within the same order of magnitude.

Returns true if a and b are _within_ the same order of magnitude.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close