Page MenuHomeFreeBSD

D53625.diff
No OneTemporary

D53625.diff

diff --git a/lib/msun/man/atan2.3 b/lib/msun/man/atan2.3
--- a/lib/msun/man/atan2.3
+++ b/lib/msun/man/atan2.3
@@ -150,14 +150,14 @@
(r,\(*h)
coordinates that must satisfy x =
.if n\
-r\(**cos theta
+r*cos theta
.if t\
-r\(**cos\(*h
+r*cos\(*h
and y =
.if n\
-r\(**sin theta.
+r*sin theta.
.if t\
-r\(**sin\(*h.
+r*sin\(*h.
These equations are satisfied when (x=0,y=0)
is mapped to
.if n \
@@ -168,7 +168,7 @@
should be computed thus:
.Bd -unfilled -offset indent
.if n \{\
-r := hypot(x,y); ... := sqrt(x\(**x+y\(**y)
+r := hypot(x,y); ... := sqrt(x*x+y*y)
theta := atan2(y,x).
.\}
.if t \{\
@@ -194,9 +194,9 @@
In general the formulas above are equivalent to these:
.Bd -unfilled -offset indent
.if n \
-r := sqrt(x\(**x+y\(**y); if r = 0 then x := copysign(1,x);
+r := sqrt(x*x+y*y); if r = 0 then x := copysign(1,x);
.if t \
-r := \(sr(x\(**x+y\(**y);\0\0if r = 0 then x := copysign(1,x);
+r := \(sr(x*x+y*y);\0\0if r = 0 then x := copysign(1,x);
.Ed
.El
.Sh SEE ALSO

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 28, 4:57 PM (19 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29075970
Default Alt Text
D53625.diff (998 B)

Event Timeline