Atan2() - C library function Program


Declaration :

Explanation :

Purpose The C library function double atan2(doubly y double x) returns the arc tangent in radians of y/x based on the signs of both values to determine the correct quadrant.
Parameters x ===> This is the floating point value representing an x-coordinate.
y ===> This is the floating point value representing an y-coordinate.
Return Value This function returns the principal arc tangent of y/x in the interval [-pi+pi] radians.
Exception

C Program : Example

The following example shows the usage of atan2() function.