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.
18 .. index:: trigonometric function, cosine, degrees
20 .. index:: cosine, degrees
22 COSD --- Cosine function, degrees
23 *********************************
27 ``COSD(X)`` computes the cosine of :samp:`{X}` in degrees.
30 The type shall be ``REAL`` or
34 The return value is of the same type and kind as :samp:`{X}`. The real part
35 of the result is in degrees. If :samp:`{X}` is of the type ``REAL``,
36 the return value lies in the range -1 \leq \cosd (x) \leq 1.
39 GNU extension, enabled with :option:`-fdec-math`.
45 .. code-block:: fortran
50 .. code-block:: fortran