aboutsummaryrefslogtreecommitdiff
path: root/lib/msun/man/atan2.3
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-03-01 05:06:48 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-03-01 05:06:48 +0000
commit7a15a32a17f4c2cbeb6f842c4c6b1cf93e4639e7 (patch)
tree68d1372161050b27e72d171803683f7f1bc388eb /lib/msun/man/atan2.3
parentee32cbed3bb1ae77ecd48cab0c28a0dd2e1ee795 (diff)
Notes
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 79b0277d8f60e..72c358835befe 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