Syntax: @ATAN2(X, Y)
X = a numeric value
Y = a numeric value
@ATAN2 returns the 4-quadrant arc tangent of Y/X. At
least one of the arguments must be non-zero. The result
is the angle (in radians) and ranges between and
.
To convert the result from radians to degrees, use the
@DEGREES function.
Examples:
@ATAN2(1, 1) = 0.78539816
@ATAN2(A1, A2) = -0.78539816, where A1 = 10 and A2 = -10
@ATAN2(D3, S5) = 1.5707963, where D3 = 0 and S5 = 1
@ATAN2(0, 0) = Error - @ATAN2, one argument must be non-zero
@DEGREES(@ATAN2(1, 3)) = 71.565