CALL TANH Routine
Returns the hyperbolic tangent.
| Category: | Mathematical |
|---|---|
| Note: | Argument types for arguments that are updated must match in CALL routines. All argument types must be CHAR, VARCHAR, or NUMERIC. If the argument types do not match, a warning is issued to the log. |
Table of Contents
Syntax
Required Argument
argument
is numeric.
| Restriction | The CALL TANH routine accepts variables only 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, is replaced by the following equation:
If any argument contains a missing value, CALL TANH returns missing values for all the arguments.
Example
data one;
x=0.5;
y=-0.5;
call tanh(x, y);
put x= y=;
run;
The preceding statements produce these results:
x=0.4621171573 y=-0.462117157
See Also
-
Functions:
Last updated: April 14, 2026
