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

Functions

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

Function Documentation

◆ atan2l()

long double atan2l ( long double  x,
long double  y 
)

Compute arc tangent with two parameters.

The atan2l 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 atan2l functions return arctan y/x in the interval [−π , +π ] radians.