Next: , Previous: ACHAR, Up: Intrinsic Procedures

### 6.6 ACOS — Arccosine function

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

 X The type shall be REAL(*) with a magnitude that is less than one.

Return value:
The return value is of type REAL(*) and it lies in the range 0 \leq \acos(x) \leq \pi. The kind type parameter is the same 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) F77 and later

See also:
Inverse function: COS