Math utilities
Math utilities
(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.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |