Calculates the arctangent of y/x.
double atan2 (double y, double x);
Required Header |
<math.h> |
Return Value
This function returns the arctangent of a double in radians.
Parameters
y
One of the two values to be converted
x
The other value to be converted
Remarks
The atan2 function calculates the arctangent of y/x to 15 digits of precision.
See Also asin, acos, atan, sin, cos, tan, sinh, cosh, tanh, cot