SIGN
The SIGN(a1,a2) function transfers the sign of the value of the expression a2 to the magnitude of the expression a1.
SIGN(a1,a2) = ABS(a1) if a2 > 0
SIGN(a1,a2) = -ABS(a1) if a2 < 0
Format
SIGN (a1,a2)
Arguments
a1
|
Any valid function expression.
|
a2
|
Any valid function expression.
|
Cautions
The SIGN function is discontinuous. Use this function with care when defining expressions for motion or forces.