Next: , Previous: ACHAR, Up: Intrinsic Procedures

### 7.6 ACOS — Arccosine function

Description:
ACOS(X) computes the arccosine of X (inverse of COS(X)).
Standard:
Fortran 77 and later
Class:
Elemental function
Syntax:
RESULT = ACOS(X)
Arguments:

 X The type shall be REAL with a magnitude that is less than or equal to one.

Return value:
The return value is of type REAL and it lies in the range 0 \leq \acos(x) \leq \pi. The return value if of the same kind as X.
Example:
          program test_acos
real(8) :: x = 0.866_8
x = acos(x)
end program test_acos


Specific names:

 Name Argument Return type Standard DACOS(X) REAL(8) X REAL(8) Fortran 77 and later