ATAN
— Arctangent functionATAN(X)
computes the arctangent of X.
RESULT = ATAN(X)
|
RESULT = ATAN(Y, X)
|
X | The type shall be REAL or COMPLEX ;
if Y is present, X shall be REAL.
|
Y shall be of the same type and kind as X.
|
ATAN2(Y,X)
.
Otherwise, it the arcus tangent of X, where the real part of
the result is in radians and lies in the range
-\pi/2 \leq \Re \atan(x) \leq \pi/2.
program test_atan real(8) :: x = 2.866_8 x = atan(x) end program test_atan
Name | Argument | Return type | Standard
|
ATAN(X) | REAL(4) X | REAL(4) | Fortran 77 and later
|
DATAN(X) | REAL(8) X | REAL(8) | Fortran 77 and later
|