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.

Syntax

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

Required Argument

argument

is numeric.

RestrictionThe 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, x sub j. Click image for alternative formats. is replaced by the following equation:

table with 1 row and 1 column , row1 column 1 , t eh n h . open , x sub j , close . equals . fraction epsilon super x sub j end super , minus . epsilon super negative , x sub j end super , over epsilon super x sub j end super , plus . epsilon super negative , x sub j end super end fraction , end table. Click image for alternative formats.

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

Last updated: April 14, 2026