Menu

ATAN2

Description

Returns the arctangent (the inverse of tangent) of the specified x and y coordinates. The arctangent is the angle between the x axis and the line containing the origin (0;0) and the point at coordinates (x_number, y_number). This angle is given in radians in the interval -pi to pi, except for the value -pi.

Examples

ATAN2(0.5, 2) = 1.325817663668

ATAN2(3, 6) = 1.1071487177941

ATAN2(NAN, 10) = NAN

ATAN2(1, INF) = 1.5707963267949

ATAN2(NAN) = NAN

ATAN2(INF) = NAN

ATAN2(-INF) = NAN

On this page