ATAN2 function

ATAN2 returns the inverse trigonometric tangent of the specified x- and y-coordinates.

Syntax

ATAN2 (x_num,y_num)

This function returns the inverse trigonometric tangent of the specified x- and y-coordinates. The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a point with coordinates (x_num, y_num). The angle returned is between -pi and pi, excluding -pi.

Example

=ATAN2(1,1) returns 0.785398163397448 (PI/4 radians).

=ATAN2(-1, -1)returns -2.356194490192344 (-3*pi/4 radians).