[UP]


Manual Reference Pages  - acos (3)

NAME

ACOS(3f) - [FORTRAN:INTRINSIC:TRIGONOMETRIC] Arccosine function

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

SYNTAX

result = ACOS(X)

DESCRIPTION

ACOS(X) computes the arccosine of X (inverse of cos(x)).

ARGUMENTS

X - The type shall be REAL with a magnitude that is less than one.

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 <= ACOS(X) <= PI.

EXAMPLE

Sample program:

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

STANDARD

[[FORTRAN 77]] and later, for a complex argument [[Fortran 2008]] and later

CLASS

Elemental function

SEE ALSO

Inverse function: [[cos]]


acos (3) March 18, 2019
Generated by manServer 1.08 from a77eceec-bad8-42b6-b512-2d72624d67fe using man macros.