Next: ATANH, Previous: ATAN2, Up: Intrinsic Procedures
ATAN2D
— Arctangent function, degreesATAN2D(Y, X)
computes the principal value of the argument
function of the complex number X + i Y in degrees. This function can
be used to transform from Cartesian into polar coordinates and
allows to determine the angle in the correct quadrant.
This function is for compatibility only and should be avoided in favor of
standard constructs wherever possible.
RESULT = ATAN2D(Y, X)
Y | The type shall be REAL .
|
X | The type and kind type parameter shall be the same as Y.
If Y is zero, then X must be nonzero.
|
program test_atan2d real(4) :: x = 1.e0_4, y = 0.5e0_4 x = atan2d(y,x) end program test_atan2d
Name | Argument | Return type | Standard
|
---|---|---|---|
ATAN2D(X, Y) | REAL(4) X, Y | REAL(4) | GNU extension
|
DATAN2D(X, Y) | REAL(8) X, Y | REAL(8) | GNU extension
|