#
Fortran Wiki

acos

## Description

`acos(x)`

computes the arccosine of `x`

(inverse of `cos(x)`

).

## Standard

FORTRAN 77 and later

## Class

Elemental function

## Styntax

`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\le acos(x)\le \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
```

## See also

Inverse function: cos

Revised on April 30, 2009 17:39:04
by

Jason Blevins
(71.70.142.190)
(612 characters / 0.0 pages)