Atan calculates the arctangent of a double value; atan2 calculates the arctangent of the quotient of two doubles.
#include <math.h> double atan (double x); double atan2 (double x, double y);
x
y
atan2 uses the signs of both arguments to determine the quadrant of the return value.
Returns 0 if both arguments are 0, sets errno to EDOM and prints a DOMAIN error message to stderr.
Note: This function does not return standard ANSI domain or range errors.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/math.h | math.h | clib.lib |