9.3.20 ATAN2D (Y, X)

Description:  Produces an arctangent. The result is the principal value of the argument of the nonzero complex number (X, Y). 
Class:  Elemental function; Generic 
Arguments:1  Y Must be of type real. 
  X Must have the same type and kind parameters as Y. 
Results:  The result type is the same as X and is expressed in degrees. The value lies in the range -180 degrees to 180 degrees. If X /= zero, the result is approximately equal to the value of arctan (Y/X).

If Y > zero, the result is positive.

If Y < zero, the result is negative.

If Y = zero, the result is zero (if X > zero) or 180 degrees (if X < zero).

If X = zero, the absolute value of the result is 90 degrees.
 
1 Both arguments must not have the value zero.

Specific Name  Argument Type  Result Type 
ATAN2D REAL(4)  REAL(4) 
DATAN2D REAL(8)  REAL(8) 
QATAN2D REAL(16)  REAL(16) 

Examples

ATAN2D (2.679676, 1.0) has the value 69.53546.


Previous Page Next Page Table of Contents