Returns the hyperbolic tangent
Category: Mathematical
CALL TANH ( argument <, 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.
The subroutine TANH replaces each argument by the tanh of that argument. For example x j is replaced by
If any argument contains a missing value, then CALL TANH returns missing values for all the arguments.
The following SAS statements produce these results:
SAS Statements | Results |
---|---|
x=0.5; y=-0.5; call tanh(x,y); put x= y=; | x=0.4621171573 y=-0.462117157 |
Function:
'TANH Function' on page 854