TANH Function

Returns the hyperbolic tangent.

Category: Hyperbolic

Syntax

TANH(argument)

Required Argument

argument

specifies a numeric constant, variable, or expression.

Details

The TANH function returns the hyperbolic tangent of the argument, which is given by
( ε a r g u m e n t - ε - a r g u m e n t ) ( ε a r g u m e n t + ε - a r g u m e n t )

Example

The following SAS statements produce these results.
SAS Statement
Result
x=tanh(0);
0
x=tanh(0.5);
0.4621171573
x=tanh(-0.5);
-0.462117157