2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
12 .. index:: hyperbolic tangent
14 .. index:: hyperbolic function, tangent
16 .. index:: tangent, hyperbolic
18 TANH --- Hyperbolic tangent function
19 *************************************
23 ``TANH(X)`` computes the hyperbolic tangent of :samp:`{X}`.
26 The type shall be ``REAL`` or ``COMPLEX``.
29 The return value has same type and kind as :samp:`{X}`. If :samp:`{X}` is
30 complex, the imaginary part of the result is in radians. If :samp:`{X}`
31 is ``REAL``, the return value lies in the range
32 - 1 \leq tanh(x) \leq 1 .
35 Fortran 77 and later, for a complex argument Fortran 2008 or later
41 .. code-block:: fortran
46 .. code-block:: fortran
65 - Fortran 77 and later
69 - Fortran 77 and later