Next: , Previous: TAN, Up: Intrinsic Procedures


7.212 TANH — Hyperbolic tangent function

Description:
TANH(X) computes the hyperbolic tangent of X.
Standard:
Fortran 77 and later
Class:
Elemental function
Syntax:
X = TANH(X)
Arguments:

X The type shall be REAL.

Return value:
The return value is of type REAL and lies in the range - 1 \leq tanh(x) \leq 1 .
Example:
          program test_tanh
            real(8) :: x = 2.1_8
            x = tanh(x)
          end program test_tanh
     

Specific names:

Name Argument Return type Standard
DTANH(X) REAL(8) X REAL(8) Fortran 95 and later

See also:
ATANH