Other arithmetic procedures available in Pop-11 include the following, most of which can be applied to numbers of all types.
abs(x) absolute value (modulus) of x
exp(x) exponential of x (e to the power x)
max(x,y) the bigger of two numbers
min(x,y) the smaller of two numbers
sign(x) -1 if x is negative, + 1 if positive, 0 if x = 0, or 0.0
random(x) a random integer in range 1 to x
round(x) the integer nearest to x, unless x is complex in which
case the result is a complex number with real part and
imaginary parts both rounded.
arccos(x) trigonometric arc cosine of angle
arcsin(x) trigonometric arc sine of angle
arctan(x) trigonometric arc tangent of angle
cos(x) trigonometric cosine of angle
log(x) natural logarithm of a number - inverse of exp
log10(num) returns the base 10 logarithm of num
negate(x) negation of the number (i.e. -x)
sin(x) trigonometric sine of angle
sqrt(x) square root of number
tan(x) trigonometric tangent of angle
NOTE:
The trigonometric procedures use degrees, unless the variable popradians
is set TRUE. The default is FALSE (i.e. use degrees.) (This is one of a
large collection of user definable global variables controlling the
behaviour of Pop-11. See HELP POPVARS).