.TH atan2() "" "" "Mathematics Function" "(libm)"
.PC "Calculate inverse tangent"
.B "#include <math.h>"
\fBdouble atan2(\fInum\^\fB, \fIden\^\fB) double \fInum\^\fB, \fIden\^\fB;\fR
.PP
.B atan2()
calculates the inverse tangent of the quotient of its arguments
.IR num/den .
.I num
and
.I den
may be any real numbers.
The result will be in the range [\-\(*p, \(*p].
The sign of the result will have the same sign as \fInum\fR, and the cosine
will have the same sign as \fIden\fR.
.SH Example
For an example of this function, see the entry for
.BR hypot() .
.SH "See Also"
.Xr errno, errno
.Xr libm libm
.br
\*(AS, \(sc7.5.2.4
.br
\*(PX Standard, \(sc8.1
