Next: COSH, Previous: CONJG, Up: Intrinsic Procedures
COS
— Cosine functionCOS(X)
computes the cosine of X.
RESULT = COS(X)
X | The type shall be REAL or
COMPLEX .
|
REAL
and it lies in the
range -1 \leq \cos (x) \leq 1. The kind type
parameter is the same as X.
program test_cos real :: x = 0.0 x = cos(x) end program test_cos
Name | Argument | Return type | Standard
|
DCOS(X) | REAL(8) X | REAL(8) | Fortran 77 and later
|
CCOS(X) | COMPLEX(4) X | COMPLEX(4) | Fortran 77 and later
|
ZCOS(X) | COMPLEX(8) X | COMPLEX(8) | GNU extension
|
CDCOS(X) | COMPLEX(8) X | COMPLEX(8) | GNU extension
|