clojure.math

(source)
Clojure wrapper functions for java.lang.Math static methods. Function calls are inlined for performance, and type hinted for primitive long or double parameters where appropriate. In general, Math methods are optimized for performance and have bounds for error tolerance. If greater precision is needed, use java.lang.StrictMath directly instead. For more complete information, see: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html

For more info about this library see:

https://clojuredocs.org/clojure.core
Public Variable Short Description
E (clj) Constant for e, the base for natural logarithms.
IEEE-remainder (clj) Returns the remainder per IEEE 754 such that remainder = dividend - divisor * n where n is the integer closest to the exact value of dividend / divisor.
PI (clj) Constant for pi, the ratio of the circumference of a circle to its diameter.
acos (clj) Returns the arc cosine of a, in the range 0.0 to pi.
add-exact (clj) Returns the sum of x and y, throws ArithmeticException on overflow.
asin (clj) Returns the arc sine of an angle, in the range -pi/2 to pi/2.
atan (clj) Returns the arc tangent of a, in the range of -pi/2 to pi/2.
atan2 (clj) Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta).
cbrt (clj) Returns the cube root of a.
ceil (clj) Returns the smallest double greater than or equal to a, and equal to a mathematical integer.
copy-sign (clj) Returns a double with the magnitude of the first argument and the sign of the second.
cos (clj) Returns the cosine of an angle.
cosh (clj) Returns the hyperbolic cosine of x, (e^x + e^-x)/2.
decrement-exact (clj) Returns a decremented by 1, throws ArithmeticException on overflow.
exp (clj) Returns Euler's number e raised to the power of a.
expm1 (clj) Returns e^x - 1.
floor (clj) Returns the largest double less than or equal to a, and equal to a mathematical integer.
floor-div (clj) Integer division that rounds to negative infinity (as opposed to zero).
floor-mod (clj) Integer modulus x - (floorDiv(x, y) * y).
get-exponent (clj) Returns the exponent of d.
hypot (clj) Returns sqrt(x^2 + y^2) without intermediate underflow or overflow.
increment-exact (clj) Returns a incremented by 1, throws ArithmeticException on overflow.
log (clj) Returns the natural logarithm (base e) of a.
log10 (clj) Returns the logarithm (base 10) of a.
log1p (clj) Returns ln(1+x).
multiply-exact (clj) Returns the product of x and y, throws ArithmeticException on overflow.
negate-exact (clj) Returns the negation of a, throws ArithmeticException on overflow.
next-after (clj) Returns the adjacent floating point number to start in the direction of the second argument.
next-down (clj) Returns the adjacent double of d in the direction of ##-Inf.
next-up (clj) Returns the adjacent double of d in the direction of ##Inf.
pow (clj) Returns the value of a raised to the power of b.
random (clj) Returns a positive double between 0.0 and 1.0, chosen pseudorandomly with approximately random distribution.
rint (clj) Returns the double closest to a and equal to a mathematical integer.
round (clj) Returns the closest long to a.
scalb (clj) Returns d * 2^scaleFactor, scaling by a factor of 2.
signum (clj) Returns the signum function of d - zero for zero, 1.0 if >0, -1.0 if <0.
sin (clj) Returns the sine of an angle.
sinh (clj) Returns the hyperbolic sine of x, (e^x - e^-x)/2.
sqrt (clj) Returns the positive square root of a.
subtract-exact (clj) Returns the difference of x and y, throws ArithmeticException on overflow.
tan (clj) Returns the tangent of an angle.
tanh (clj) Returns the hyperbolic tangent of x, sinh(x)/cosh(x).
to-degrees (clj) Converts an angle in radians to an approximate equivalent angle in degrees.
to-radians (clj) Converts an angle in degrees to an approximate equivalent angle in radians.
ulp (clj) Returns the size of an ulp (unit in last place) for d.