Description atan2()
computes the arc tangent of x/y, using the signs of both arguments to determine
Syntax | #include <math.h> double atan2(double x, double y); | |
Description | These functions compute the arc tangent of x/y, using the signs of both arguments to determine the quadrant of the return value. x is the dividend of the expression for which the arc tangent is to the calculated. y is the divisor of the expression for which the arc tangent is to the calculated. | |
Return val. | arc tangent(x/y) | |
if neither argument is 0.0. | ||
-pi/2 or +pi/2 | if the divisor is 0.0, depending on the sign of the dividend. | |
0 π/2 | if the dividend is 0.0. if both arguments are 0.0. | |
Errors | atan2(),
| |
See also |
|