MicrOS
atan2.c File Reference
#include "../math.h"

Functions

double atan2 (double x, double y)
 Compute arc tangent with two parameters. More...
 

Function Documentation

◆ atan2()

double atan2 ( double  x,
double  y 
)

Compute arc tangent with two parameters.

The atan2 functions compute the 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.

Parameters
xValue representing the proportion of the y-coordinate.
yValue representing the proportion of the x-coordinate.
Returns
The atan2 functions return arctan y/x in the interval [−π , +π ] radians.