The programming options in expressions are restricted. No local variables may be used.
Between the data types, the operators are defined in accordance with Table 64.1. A series of mathematical functions is also available. They are listed in table 64.2.
Data type |
Operations |
Description |
|
+,- |
Addition and subtraction |
|
*,/ |
Multiplication and division |
|
<,>=,=,!=,>=,> |
Relational operators |
|
!,AND,OR |
Logical operators |
|
+,LEN |
Concatenation and length operators |
|
<,>=,=,!=,>=,>,! |
Relational operators |
|
+,- |
Addition and subtraction |
|
*,** |
Scalar and vector multiplication |
|
:x,:y,:z |
Access to components |
|
LEN |
Vector length |
|
[],+,LEN |
Indexing, concatenation and length operator |
Table 64.1: Permitted operators for data types
|
Supplies the value of x |
|
Supplies the sign of x (+1, -1 or 0 if x=0) |
|
Supplies the smallest value of the arguments |
|
System supplies the largest value of the arguments |
|
System converts from degrees to radian measure |
|
System converts from curve to degrees |
|
System calculates sin of x in the radian measure |
|
System calculates sinh of x |
|
System calculates arcsin of x |
|
System calculates cos of x in the radian measure |
|
System calculates cosh of x |
|
System calculates arccos of x |
|
System calculates tan of x in the radian measure |
|
System calculates tanh of x |
|
System calculates arctan of x |
|
System calculates arctan of y/x |
|
System calculates e to the power of x |
|
System calculates the natural logarithm of x |
|
System calculates the decadic logarithm of x calculates |
|
System calculates square root of x |
|
System calculates x to the power of y |
|
System calculates x modulo y |
Table 64.2: Predefined mathematical functions
A variable's expression can contain the specified operations and any function calls. If limited expressions are to be used, the expression must begin with and the result must be returned with :
#
IF a>b THEN
RETURN a;
ELSE
RETURN b;
ENDIF