Manpage of ATAN2
ATAN2
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
1.7 `atan2', `atan2f'--arc tangent of y/x
SYNOPSIS
#include <math.h>
double atan2(double Y,double X);
float atan2f(float Y,float X);
DESCRIPTION
`atan2' computes the inverse tangent (arc tangent) of Y/X. `atan2'
produces the correct result even for angles near pi/2 or -pi/2 (that
is, when X is near 0).
`atan2f' is identical to `atan2', save that it takes and returns
`float'.
RETURNS
`atan2' and `atan2f' return a value in radians, in the range of -pi to
pi.
If both X and Y are 0.0, `atan2' causes a `DOMAIN' error.
You can modify error handling for these functions using `matherr'.
PORTABILITY
`atan2' is ANSI C. `atan2f' is an extension.
SEE ALSO
atan2
is part of the
libm
library.
The full documentation for
libm
is maintained as a Texinfo manual. If
info
and
libm
are properly installed at your site, the command
-
info libm
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:12 GMT, May 16, 2005
www.fiveanddime.net