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:: area hyperbolic tangent
14 .. index:: inverse hyperbolic tangent
16 .. index:: hyperbolic function, tangent, inverse
18 .. index:: tangent, hyperbolic, inverse
20 ATANH --- Inverse hyperbolic tangent function
21 *********************************************
23 .. function:: ATANH(X)
25 ``ATANH(X)`` computes the inverse hyperbolic tangent of :samp:`{X}`.
28 The type shall be ``REAL`` or ``COMPLEX``.
31 The return value has same type and kind as :samp:`{X}`. If :samp:`{X}` is
32 complex, the imaginary part of the result is in radians and lies between
33 -\pi/2 \leq \Im \atanh(x) \leq \pi/2.
36 Fortran 2008 and later
42 .. code-block:: fortran
47 .. code-block:: fortran
50 REAL, DIMENSION(3) :: x = (/ -1.0, 0.0, 1.0 /)