LF Fortran 95

ATAN Function

Description

The ATAN function returns the arctangent of a real number, in radians.

Syntax

ATAN (x)

Arguments

x is an INTENT(IN) scalar or array of type REAL.

Result

The result is a REAL representation of the arctangent of x, expressed in radians. The result always falls within the range -Π/2 ≤ x ≤ Π/2.

Example

real :: a=0.5 write(*,*) atan(a) ! writes 0.4636476