COSD — Cosine function, degrees¶
- COSD(X)¶
COSD(X)computes the cosine ofXin degrees.- Parameters
X – The type shall be
REALorCOMPLEX.- Returns
The return value is of the same type and kind as
X. The real part of the result is in degrees. IfXis of the typeREAL, the return value lies in the range -1 leq cosd (x) leq 1.
Standard:GNU extension, enabled with
-fdec-math.Class:Elemental function
Syntax:RESULT = COSD(X)
Example:program test_cosd real :: x = 0.0 x = cosd(x) end program test_cosd
Specific names:Name
Argument
Return type
Standard
COSD(X)REAL(4) XREAL(4)GNU extension
DCOSD(X)REAL(8) XREAL(8)GNU extension
CCOSD(X)COMPLEX(4) XCOMPLEX(4)GNU extension
ZCOSD(X)COMPLEX(8) XCOMPLEX(8)GNU extension
CDCOSD(X)COMPLEX(8) XCOMPLEX(8)GNU extension
See also:Inverse function: ACOSD Radians function: COS