Returns the maximum of two expressions that represent numerical values:
MAX(x1,x2) = x1 if x1 > x2MAX(x1,x2) = x2 if x2 > x1
Note: | MAX is generally discontinuous. Use this function expression with care when specifying force or motion input. |
Format
MAX(x1,x2)
Arguments
x1 | Any valid expression that evaluates to a real number. |
x2 | Any valid expression that evaluates to a real number. |
Example
The following function is designed to always return a non-negative value:
MAX(0, (25D-AZ(marker_2, marker_1)))