The MAX function returns the maximum of two expressions a1 and a2.
MAX(a1,a2) = a1 if a1 > a2
MAX(a1,a2) = a2 if a2 > a1
MAX(a1,a2)
| a1 | Any valid function expression. |
| a2 | Any valid function expression. |
Cautions
The MAX function is generally discontinuous. Use this function expression with care when you are specifying force or motion input.
MAX(0,-3*(AZ(21,11)-25D))
This function always returns a non-negative value through the use of the MAX function. Therefore, a torque defined using this function can only act to increase the AZ rotation of Marker 21 with respect to Marker 11 (see AZ).