atan(3f) - [FORTRAN:INTRINSIC:TRIGONOMETRIC] Arctangent function
Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also
o result = atan(x) o result = atan(y, x)
atan(x) computes the arctangent of 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.
The return value is of the same type and kind as X. If Y is present, the result is identical to 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 <= atan(x) <= PI/2.
Sample program:
program demo_atan real(8) :: x = 2.866_8 x = atan(x) end program demo_atan
[[FORTRAN 77]] and later; for a complex argument and for two arguments [[Fortran 2008]] or later
[[Elemental function]]
[[atan2]], [[tan]]
atan (3) | March 18, 2019 |