summaryrefslogtreecommitdiffstats
path: root/lib/msun/man/atan2.3
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2005-01-14 23:28:28 +0000
committerdas <das@FreeBSD.org>2005-01-14 23:28:28 +0000
commitdf8ce09fbda51b1a29af2e321a4c4feb4543aefc (patch)
tree7aa790913ac8bac811e6dd89164c064b37167b07 /lib/msun/man/atan2.3
parent2fe7b09cb198e42356fd30dbc005daff0809ff0c (diff)
downloadFreeBSD-src-df8ce09fbda51b1a29af2e321a4c4feb4543aefc.zip
FreeBSD-src-df8ce09fbda51b1a29af2e321a4c4feb4543aefc.tar.gz
Remove numerous references to VAX floating-point and the setting of
errno, replacing them with a discussion of IEEE exceptions where appropriate. Cross-reference fenv(3) whenever exceptions are mentioned.
Diffstat (limited to 'lib/msun/man/atan2.3')
-rw-r--r--lib/msun/man/atan2.320
1 files changed, 4 insertions, 16 deletions
diff --git a/lib/msun/man/atan2.3 b/lib/msun/man/atan2.3
index f951812..3f56497 100644
--- a/lib/msun/man/atan2.3
+++ b/lib/msun/man/atan2.3
@@ -32,7 +32,7 @@
.\" from: @(#)atan2.3 5.1 (Berkeley) 5/2/91
.\" $FreeBSD$
.\"
-.Dd May 2, 1991
+.Dd January 14, 2005
.Dt ATAN2 3
.Os
.Sh NAME
@@ -69,16 +69,7 @@ in the range
.Bq \&- Ns \*(Pi , \&+ Ns \*(Pi
.Ek
radians.
-If both
-.Fa x
-and
-.Fa y
-are zero, the global variable
-.Va errno
-is set to
-.Er EDOM .
-On the
-.Tn VAX :
+Here are some of the special cases:
.Bl -column atan_(y,x)_:=____ sign(y)_(Pi_atan2(Xy_xX))___
.It Fn atan2 y x No := Ta
.Fn atan y/x Ta
@@ -105,9 +96,7 @@ The function
.Fn atan2
defines "if x > 0,"
.Fn atan2 0 0
-= 0 on a
-.Tn VAX
-despite that previously
+= 0 despite that previously
.Fn atan2 0 0
may have generated an error message.
The reasons for assigning a value to
@@ -144,8 +133,7 @@ is mapped to
.if n \
(r=0,theta=0)
.if t \
-(r=0,\(*h=0)
-on a VAX.
+(r=0,\(*h=0) .
In general, conversions to polar coordinates
should be computed thus:
.Bd -unfilled -offset indent
OpenPOWER on IntegriCloud