COS intrinsic function

Standard: F77 F90 F95 F2003 F2008 F2018 Example program


COS ( X )

X : Real or Complex;

Result : Same type and kind as X.


The value of the result is an approximation to the cosine of X. Like many intrinsic functions, this is elemental; the result has the same shape as X, with the operation being applied elementwise.

If X is of type Real, it specifies the angle in radians. If X is of type Complex, the real part is interpreted as radians.


ACOS intrinsic function, COSH intrinsic function