summaryrefslogtreecommitdiffstats
path: root/lib/msun/man/atan2.3
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-03-01 05:06:48 +0000
committerjkh <jkh@FreeBSD.org>1995-03-01 05:06:48 +0000
commit4d71750d42027edbc0501a36f71265917f601d76 (patch)
tree68d1372161050b27e72d171803683f7f1bc388eb /lib/msun/man/atan2.3
parentbfcb419e68efbbb96953c29a9b4c15c948b1e11c (diff)
downloadFreeBSD-src-4d71750d42027edbc0501a36f71265917f601d76.zip
FreeBSD-src-4d71750d42027edbc0501a36f71265917f601d76.tar.gz
Additions from Thomas Graichen to mention each functions' floating point
counterpart. Submitted by: Thomas Graichen <graichen@sirius.physik.fu-berlin.de>
Diffstat (limited to 'lib/msun/man/atan2.3')
-rw-r--r--lib/msun/man/atan2.331
1 files changed, 19 insertions, 12 deletions
diff --git a/lib/msun/man/atan2.3 b/lib/msun/man/atan2.3
index 79b0277..72c3588 100644
--- a/lib/msun/man/atan2.3
+++ b/lib/msun/man/atan2.3
@@ -30,40 +30,47 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)atan2.3 5.1 (Berkeley) 5/2/91
-.\" $Id: atan2.3,v 1.3 1993/08/14 13:42:32 mycroft Exp $
+.\" $Id: atan2.3,v 1.1.1.1 1994/08/19 09:39:41 jkh Exp $
.\"
.Dd May 2, 1991
.Dt ATAN2 3
.Os
.Sh NAME
-.Nm atan2
-.Nd arc tangent function of two variables
+.Nm atan2 ,
+.Nm atan2f
+.Nd arc tangent functions of two variables
.Sh SYNOPSIS
.Fd #include <math.h>
.Ft double
.Fn atan2 "double y" "double x"
+.Ft float
+.Fn atan2f "float y" "float x"
.Sh DESCRIPTION
The
-.Xr atan2
-function computes the principal value of the arc tangent of
-.Ar y/ Ns Ar x ,
+.Fn atan2
+and the
+.Fn atan2f
+functions compute the principal value of the arc tangent of
+.Fa y/ Ns Ar x ,
using the signs of both arguments to determine the quadrant of
the return value.
.Sh RETURN VALUES
The
-.Xr atan2
-function, if successful,
-returns the arc tangent of
-.Ar y/ Ns Ar x
+.Fn atan2
+and the
+.Fn atan2f
+functions, if successful,
+return the arc tangent of
+.Fa y/ Ns Ar x
in the range
.Bk -words
.Bq \&- Ns \*(Pi , \&+ Ns \*(Pi
.Ek
radians.
If both
-.Ar x
+.Fa x
and
-.Ar y
+.Fa y
are zero, the global variable
.Va errno
is set to
OpenPOWER on IntegriCloud