cos(3f) - [FORTRAN:INTRINSIC:MATHEMATICS:TRIGONOMETRIC] Cosine function
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 implicit none real :: x = 0.0 x = cos(x) end program demo_cos
[[FORTRAN 77]] and later
[[Elemental procedure|Elemental function]]
acos(3), sin(3), tan(3)
cos (3) | March 11, 2021 |