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:: trigonometric function, tangent, inverse
14 .. index:: tangent, inverse
16 ATAN --- Arctangent function
17 *****************************
21 ``ATAN(X)`` computes the arctangent of :samp:`{X}`.
24 The type shall be ``REAL`` or ``COMPLEX`` ;
25 if :samp:`{Y}` is present, :samp:`{X}` shall be REAL.
28 The type and kind type parameter shall be the same as :samp:`{X}`.
31 The return value is of the same type and kind as :samp:`{X}`.
32 If :samp:`{Y}` is present, the result is identical to ``ATAN2(Y,X)``.
33 Otherwise, it the arcus tangent of :samp:`{X}`, where the real part of
34 the result is in radians and lies in the range
35 -\pi/2 \leq \Re \atan(x) \leq \pi/2.
38 Fortran 77 and later, for a complex argument and for two arguments
45 .. code-block:: fortran
51 .. code-block:: fortran
54 real(8) :: x = 2.866_8
70 - Fortran 77 and later
74 - Fortran 77 and later