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, cosine, inverse, degrees
14 .. index:: cosine, inverse, degrees
16 ACOSD --- Arccosine function, degrees
17 *************************************
19 .. function:: ACOSD(X)
21 ``ACOSD(X)`` computes the arccosine of :samp:`{X}` in degrees (inverse of
25 The type shall either be ``REAL`` with a magnitude that is
26 less than or equal to one - or the type shall be ``COMPLEX``.
29 The return value is of the same type and kind as :samp:`{X}`.
30 The real part of the result is in degrees and lies in the range
31 0 \leq \Re \acos(x) \leq 180.
34 GNU extension, enabled with :option:`-fdec-math`
40 .. code-block:: fortran
45 .. code-block:: fortran
48 real(8) :: x = 0.866_8
50 end program test_acosd