| Description: | Produces a hyperbolic tangent. | ||
| Class: | Elemental function; Generic | ||
| Arguments: | X must be of type real. | ||
| Results: | The result type is the same as X. | ||
| Specific Name | Argument Type | Result Type |
|---|---|---|
| TANH | REAL(4) | REAL(4) |
| DTANH | REAL(8) | REAL(8) |
| QTANH | REAL(16) | REAL(16) |
Examples
TANH (2.0) has the value 0.9640276.
TANH (0.8) has the value 0.6640368.