cos(3f) - [FORTRAN:INTRINSIC:TRIGONOMETRIC] Cosine function
Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also
result = cos(x)
cos(x) computes the cosine of 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 radians. If X is of the type REAL, the return value lies in the range -1 <= \cos (x) <= 1.
Sample program:
program demo_cos real :: x = 0.0 x = cos(x) end program demo_cos
[[FORTRAN 77]] and later
[[Elemental procedure|Elemental function]]
[[acos]], [[sin]], [[tan]]
cos (3) | March 18, 2019 |