Relational Operators
< Returns 1 if the left expression is less than the right expression, otherwise returns 0.
<= Returns 1 if the left expression is less than or equal to the right expression,
otherwise returns 0.
== Returns 1 if the left expression is equal to the right expression, otherwise returns 0.
!= Returns 1 if the left expression is not equal to the right expression, otherwise
returns 0.
>= Returns 1 if the left expression is greater than or equal to the right expression,
otherwise returns 0.
>
Returns 1 if the left expression is greater than the right expression, otherwise
returns 0.
Assignment Operators
= Substitutes the right expression into the left expression.
+= Substitutes the sum of the left and right expressions into the left expression.
−= Substitutes the difference between the left and right expressions into the left
expression.
*= Substitutes the product of the left and right expressions into the left expression.
/= Substitutes the quotient between the left and right expressions into the left
expression.
%= Substitutes the remainder of the quotient of the left and right expressions into the
left expression.
|= Substitutes the logical OR of the left and right expressions into the left expression.
&= Substitutes the logical AND of the left and right expressions into the left expression.
Functions
ABS(expression)
Returns the absolute value of the expression.
LN(expression)
Returns the natural logarithm of the expression.
LOG(expression)
Returns the common logarithm of the expression.
SQRT(expression)
Returns the square root of the expression.
SIN(expression)
Returns the sine of the expression.
COS(expression)
Returns the cosine of the expression.
TAN(expression)
Returns the tangent of the expression.
ASIN(expression)
Returns the arc sine of the expression.
ACOS(expression)
Returns the arc cosine of the expression.
ATAN(expression)
Returns the arc tangent of the expression.
SINH(expression)
Returns the hyperbolic sine of the expression.
COSH(expression)
Returns the hyperbolic cosine of the expression.
TANH(expression)
Returns the hyperbolic tangent of the expression.
TRUNC(expression)
Returns an integer with the fraction truncated.
FLOOR(expression)
Returns the maximum integer less than the expression.
ISNAN(expression)
Returns 1 if the expression is NAN, otherwise returns 0.
ISINF(expression)
Returns −1 if the expression is −INF, returns 1 if the expression
is +INF, otherwise returns 0.
RAND()
Returns a random number between 0 and 1.
EDGE(expression)
Returns 1 if the expression changes from false to true,
otherwise returns 0.
NEDGE(expression)
Returns 1 if the expression changes from true to false,
otherwise returns 0.
Comments
Text written from // to the end of the line are not evaluated. You can write comments after
//.
White Spaces
Any number of spaces or tabs can be inserted between a variable, constant, function, or
operator.
Limitations to Expressions
An expression can contain up to 256 elements such as variables, constants, functions,
and operators. An error will occur if an expression containing more than 256 elements is
selected.
8.5 User-Defined Computation
8-11
IM 765601-01E
Computation
3
2
1
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
App
Index