The atan2 function

Name

atan2 -- 

Synopsis

#include <math.h>

double atan2 (double y, double x);

Description

The atan2 function computes the principal value of the arc tangent of y/x, using the signs of both arguments to determine the quadrant of the return value. A domain error may occur if both arguments are zero.

Returns

The atan2 function returns the arc tangent of y/x, in the range [-pi, +pi] radians.

See Also

The atan function

Implementation Notes

None