ACOS(3f)

DESCRIPTION
ACOS(X) computes the arccosine of X (inverse of COS(X)).

STANDARD
Fortran 77 and later, for a complex argument Fortran 2008 or later

CLASS
Elemental function

SYNTAX
RESULT = ACOS(X)

ARGUMENTS

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

RETURN VALUE
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 <=q Re acos(x) <=q PI.

EXAMPLE
          program test_acos
            real(8) :: x = 0.866_8
            x = acos(x)
          end program test_acos

SPECIFIC NAMES

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

SEE ALSO
Inverse function: COS

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).