The TANH function returns the hyperbolic tangent of an expression a.
TANH(a) = (ea - e-a) / (ea + e-a)
Format
TANH(a)
Arguments
a | Any valid function expression. Number of arguments: 1 |
Extended Definition
The figure below illustrates the TANH function.
TANH Function
Example
MOTION/1, JOINT=21, TRANSLATION
, FUNCTION=0.5(1+TANH(5*(TIME-1.5)))
This MOTION statement defines a smooth step function that transitions from a value of 0 to 1. The value of the step function at time=1.5 is 0.5.