Function Operators
A function call is specified by the function name (e.g. SIN, ATAN, . . .) followed by the function
argument in brackets. When a function is used for a coordinate position it must be contained in
brackets.
Examples:
X [SIN [45]]
Y [ATAN[1⁄2]]
Z [SQRT[9]]
A function returns a value and can be used interchangeably anywhere a decimal value is
accepted. Each function has one argument which can be specified using any of the four operand
types.
The functions supported are as follows.
Sine (SIN) returns the sine of the argument.
SIN [90] = 1
Cosine (COS) returns the cosine of the argument.
COS [180] = -1
Tangent (TAN) returns the tangent of the argument.
TAN [135] = -1
Arctangent (ATAN) returns the arctangent of the argument. The argument must be specified
in fractional form (e.g. ½, 2⁄1, -5⁄6, ...).
ATAN [1⁄-1] = 135
Square root (SQRT) returns the square root of the argument.
SQRT [9] = 3
Absolute value (ABS) returns the absolute value of the argument.
ABS [-15] = 15
Integer (INT) returns the integer part of the argument.
INT [5.5099] = 5
Random (RND) returns an integer random number between 0 and its argument.
RND [25] will return an integer >=0 and <=24
Natural Logarithm (LN) returns the natural logarithm of the argument.
LN [10] = 2.3026
Exponential (EXP) returns the exponential of the argument.
EXP [1] = 2.7183
Round (ROUND) rounds a decimal value to an integer value.
Values halfway in-between are rounded up.
ROUND [2.3] = 2
ROUND [7.88] = 8
ROUND [1.5] = 2
ROUND [-1.5] = -2
ROUND [2.5] = 3
ROUND [3.5] = 4