Provides basic constants and mathematical functions.
ConstantsConstants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.
Natural logarithm of 10
Natural logarithm of 2
Base-10 logarithm of e
Base-2 logarithm of e
Largest finite value representable by Double
Smallest positive, non-zero value representable by Double
Square root of 2
Square root of e
Square root of phi
Square root of pi
Functions, Macros, and Special Forms
Returns the absolute value of x.
Returns the least integer value greater than or equal to x.
(copy-sign x y)
Returns value with the magnitude of x and the sign of y.
Returns the cosine of the radian argument x.
Returns the cube root of x.
(dim x y)
Returns the maximum of x-y and 0.
Returns e**x, the base-e exponential of x.
Returns 2**x, the base-2 exponential of x.
Returns e**x - 1, the base-e exponential of x minus 1.
This is more accurate than (- (exp x) 1.) when x is near zero.
Returns the greatest integer value greater than or equal to x.
(hypot p q)
Returns Sqrt(p*p + q*q), taking care to avoid unnecessary overflow and underflow.
Returns positive infinity if sign >= 0, negative infinity if sign < 0.
(inf? x sign)
Returns whether x is an infinity.
If sign > 0, returns whether x is positive infinity; if < 0, whether negative infinity; if == 0, whether either infinity.
Returns the natural logarithm of x.
Returns the decimal logarithm of x.
Returns the binary logarithm of x.
Returns the binary exponent of x.
Returns the natural logarithm of 1 plus x.
This is more accurate than (log (+ 1 x)) when x is near zero.
Returns a vector with the integer and fractional floating-point numbers that sum to x.
Both values have the same sign as x.
Returns an IEEE 754 "not-a-number" value.
Returns whether x is an IEEE 754 "not-a-number" value.
(next-after x y)
Returns the next representable Double value after x towards y.
(pow x y)
Returns x**y, the base-x exponential of y.
Returns 10**x, the base-10 exponential of x.
Returns the integer nearest to x, rounding half away from zero.
Returns the integer nearest to x, rounding ties to the nearest even integer.
Returns whether x is negative or negative zero.
Returns the sine of the radian argument x.
Returns the square root of x.
Returns the integer value of x.