Returns the absolute value of an expression that represents a numerical value.
Format
ABS (x)
Argument
x | Any valid expression that evaluates to a real number. |
Examples
The following function returns the absolute instantaneous value of the expression (-10*TIME+15*TIME**2), where TIME is the current simulation time:
ABS(-10*TIME+15*TIME**2)
The following use of the ABS function will prevent instances where the argument of the square root function becomes negative:
SQRT(ABS(10-DX(marker_T, marker_F, marker_A)))