Calculates the arc tangent using the tangent y/x of an angle.
@ATan2( x ; y )
x
Number or number list. The denominator of the tangent value y / x.
y
Number or number list. The numerator of the tangent value y / x.
If either parameter is a list, the function operates pair-wise on the list elements, and the return value is a list with the number of elements in the larger list.
angle
Number. An angle, in radians, from -pi through pi. This represents an angle between -180 and 180 degrees, depending on the sign of x and y (see the list below).
If
|
Then angle is in the range
|
|
x is positive y is positive |
0 to pi/2 (Quadrant I) |
|
x is negative y is positive |
pi/2 to pi (Quadrant II) |
|
x is negative y is negative |
-pi to -pi/2 (Quadrant III) |
|
x is positive y is negative |
-pi/2 to 0 (Quadrant IV) |
ATn2 function in LotusScript language
See examples