COHERENT manpages

This page displays the COHERENT manpage for atan2() [Calculate inverse tangent].

List of available manpages
Index


atan2() -- Mathematics Function (libm)

Calculate inverse tangent
#include <math.h>
double atan2(num, den) double num, den;

atan2() calculates  the inverse  tangent of  the quotient of  its arguments
num/den. num  and den may be  any real numbers.  The result  will be in the
range [-pi,  pi].  The sign of  the result will have the  same sign as num,
and the cosine will have the same sign as den.

Example

For an example of this function, see the entry for hypot().

See Also

errno,
libm
ANSI Standard, §7.5.2.4
POSIX Standard, §8.1