Back to Class Index
ATAN2(X, Y)This function 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 -PI and +PI. To convert the result from radians to degrees, use the DEGREES function. Parameters X A numeric value Y A numeric value 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 |