CALL TANH Routine

Returns the hyperbolic tangent.

Category: Mathematical

Syntax

CALL TANH(argument<, argument,...> );

Required Argument

argument

is numeric.

Restriction The CALL TANH routine only accepts variables as valid arguments. Do not use a constant or a SAS expression, because the CALL routine is unable to update these arguments.

Details

The subroutine TANH replaces each argument by the tanh of that argument. For example x j is replaced by
t a n h ( x j ) = ε x j - ε - x j ε x j + ε - x j
If any argument contains a missing value, then CALL TANH returns missing values for all the arguments.

Example: Examples

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

See Also

Functions: