Next: , Previous: TAN, Up: Intrinsic Procedures


8.102 TANH — Hyperbolic tangent function

Description:
TANH(X) computes the hyperbolic tangent of X.
Option:
f95, gnu
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 Option
DTANH(X) REAL(8) X REAL(8) f95, gnu