ATAN2 (Primitive Spread Function) returns the arctangent of the specified x- and y-coordinates. The result is given in radians between –π and π, excluding –π.
SYNTAX:
ARTAN2(value1,value2)
REMARKS:
The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a point with coordinates (value1, value2). If you want to convert the result to degrees, multiply it by 180/π.
EXAMPLES:
ATAN2(A1,C3)
ATAN2(1,1)=0.7853981634