Fortran Wiki
atan

Description

atan(x) computes the arctangent of x.

Standard

FORTRAN 77 and later

Class

Elemental function?

Syntax

result = atan(x)

Arguments

  • x - The type shall be real.

Return value

The return value is of type real and it lies in the range π/2atan(x)π/2.

Example

program test_atan
  real(8) :: x = 2.866_8
  x = atan(x)
end program test_atan

See also

Inverse function: tan

category: intrinsics