a + b {(a, a) a :: (a in number)}
Returns the sum of the two arguments.
a - b {(a, a) a :: (a in number)}
Subtracts the second argument from the first.
-v {a a :: (a in number)}
Negates a number.
abs(x) {a a :: (a in number)}
Returns the absolute value of the argument.
diff(x, y) {(a, a) a :: (a in number)}
Returns the absolute value of the difference of the two arguments.
max(a, b) {(a, a) a :: (a in ordinal)}
Returns the argument that is greatest (closest to positive infinity).
min(a, b) {(a, a) a :: (a in ordinal)}
Returns the argument that is least (closest to negative infinity).
v * d {(a, a) a :: (a in number)}
Returns the product of the two arguments.
v / d {(a, a) a :: (a in number)}
Returns v divided by d.
If the arguments are integers, the result is truncated
towards 0.
rem(v, d) {(int, int) int}
Returns the remainder after dividing v by d.
The following examples show rem does for negative
arguments: rem(5,3) = 2, rem(5,-3) = 2,
rem(-5,3) = -2, and rem(-5,-3) = -2.
lshift(a, b) {(int, int) int}
Returns the first argument logically shifted to the left by the integer
contained in the second argument. Shifting will fill with 0-bits.
rshift(a, b) {(int, int) int}
Returns the first argument logically shifted to the right by the integer
contained in the second argument. Shifting will fill with 0-bits or the
sign bit, depending on the implementation.
sqrt(v) {float float}
Returns the square root of the argument. The argument must be nonnegative.
isqrt(v) {int int}
Returns the greatest integer less than or equal to the exact
square root of the integer argument. The argument must be nonnegative.
ln(v) {float float}
Returns the natural log of the argument.
log(v, b) {(float, float) float}
Returns the logarithm of v in the base b.
exp(v) {float float}
Returns e raised to the power v.
expt(v, p) {(float, float) float}
Returns v raised to the power p.
sin(v) {float float}
Returns the sine of v, where v is in radians.
cos(v) {float float}
Returns the cosine of v, where v is in radians.
tan(v) {float float}
Returns the tangent of v, where v is in radians.
asin(v) {float float}
Returns the arc sine of v. The result is in radians.
acos(v) {float float}
Returns the arc cosine of v. The result is in radians.
atan(v) {float float}
Returns the arc tangent of v. The result is in radians.
sinh(v) {float float}
Returns the hyperbolic sine of v ( ).
cosh(v) {float float}
Returns the hyperbolic cosine of v ( ).
tanh(v) {float float}
Returns the hyperbolic tangent of v
( ).