ACOS(3f) - [FORTRAN:INTRINSIC:TRIGONOMETRIC] Arccosine function
Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also
result = ACOS(X)
ACOS(X) computes the arccosine of X (inverse of cos(x)).
X - The type shall be REAL with a magnitude that is less than one.
The return value is of the same type and kind as X. The real part of the result is in radians and lies in the range
0 <= ACOS(X) <= PI.
Sample program:
program demo_acos real(8) :: x = 0.866_8 x = acos(x) end program demo_acos
[[FORTRAN 77]] and later, for a complex argument [[Fortran 2008]] and later
Elemental function
Inverse function: [[cos]]
acos (3) | March 18, 2019 |