ATAN2 INDEX

ATAN2 _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

atan2(<expression>,<expression>)

<expression> is any valid scalar REDUCE expression. In rounded mode, if a numerical value exists, atan2 returns the principal value of the arc tangent of the second argument divided by the first in the range [-pi,+pi] radians, using the signs of both arguments to determine the quadrant of the return value. An expression in terms of atan2 is returned in other cases.

examples:


atan2(3,2); 

  ATAN2(3,2); 


on rounded; 

atan2(3,2); 

  0.982793723247 


atan2(a,b); 

  ATAN2(A,B); 


atan2(1,0); 

  1.57079632679

atan2returns a numeric value only if rounded is on. Then atan2 is calculated to the current degree of floating point precision.