The ATAN function returns the arctangent of a real number, in radians.
Syntax
ATAN (x)
x is an INTENT(IN) scalar or array of type REAL.
The result is a REAL representation of the arctangent of x, expressed in radians. The result always falls within the range
Example
real :: a=0.5 write(*,*) atan(a) ! writes 0.4636476