Next: COSH, Previous: COS, Up: Intrinsic Procedures [Contents][Index]
COSD
— Cosine function, degreesCOSD(X)
computes the cosine of X in degrees.
This function is for compatibility only and should be avoided in favor of standard constructs wherever possible.
GNU Extension, enabled with -fdec-math.
Elemental function
RESULT = COSD(X)
X | The type shall be REAL or
COMPLEX . |
The return value is of the same type and kind as X. The real part
of the result is in degrees. If X is of the type REAL
,
the return value lies in the range -1 \leq \cosd (x) \leq 1.
program test_cosd real :: x = 0.0 x = cosd(x) end program test_cosd
Name | Argument | Return type | Standard |
COSD(X) | REAL(4) X | REAL(4) | GNU Extension |
DCOSD(X) | REAL(8) X | REAL(8) | GNU Extension |
CCOSD(X) | COMPLEX(4) X | COMPLEX(4) | GNU Extension |
ZCOSD(X) | COMPLEX(8) X | COMPLEX(8) | GNU extension |
CDCOSD(X) | COMPLEX(8) X | COMPLEX(8) | GNU extension |