Returns thehyperbolic tangent of the input variable.
If x is of double-precision floating-point or of complex data type, TANH yields a result of the same type. All other data types yield a single-precision floating-point result.
If x is an array, the result of TANH has the same dimensions, with each element containing the hyperbolic tangent of the corresponding element of x.
x = [0.3, 0.5, 0.7, 0.9] PRINT, TANH(x)
0.291313 0.462117 0.604368 0.716298
For a list of other transcendental functions, see Transcendental Mathematical Functions in Volume 1 of this reference.