diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-05-20 09:17:52 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-05-20 09:17:52 +0000 |
commit | fcfc831a5d1a1ec7b51806e7dfc66c48f950756b (patch) | |
tree | 8b7179f34b129ecd54a188123541be0be5757665 /lib/libm | |
parent | f0d5a31a45039f27fe51cdf45c98dcf8be1ff64d (diff) |
- typos
- new sentence, new line
Diffstat (limited to 'lib/libm')
-rw-r--r-- | lib/libm/man/exp.3 | 18 | ||||
-rw-r--r-- | lib/libm/man/hypot.3 | 6 | ||||
-rw-r--r-- | lib/libm/man/ieee.3 | 10 | ||||
-rw-r--r-- | lib/libm/man/infnan.3 | 22 | ||||
-rw-r--r-- | lib/libm/man/sin.3 | 5 | ||||
-rw-r--r-- | lib/libm/man/sinh.3 | 4 |
6 files changed, 34 insertions, 31 deletions
diff --git a/lib/libm/man/exp.3 b/lib/libm/man/exp.3 index 3e6b82d5fff..025f30b3e4d 100644 --- a/lib/libm/man/exp.3 +++ b/lib/libm/man/exp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: exp.3,v 1.13 2003/05/08 09:09:45 jmc Exp $ +.\" $OpenBSD: exp.3,v 1.14 2003/05/20 09:17:51 jmc Exp $ .\" .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. @@ -83,7 +83,7 @@ function computes the exponential value of the given argument .Fa x . The .Fn expf -function is a single precision version of +function is a single precision version of .Fn exp . .Pp The @@ -189,7 +189,8 @@ and .Fn pow detect if the computed value will overflow, set the global variable -.Va errno to +.Va errno +to .Er ERANGE and cause a reserved operand fault on a .Tn VAX @@ -259,15 +260,16 @@ and .Em NaN (the reserved operand on a -.Tn VAX ) . Previous implementations of pow may -have defined x**0 to be undefined in some or all of these -cases. Here are reasons for returning x**0 = 1 always: +.Tn VAX ) . +Previous implementations of pow may +have defined x**0 to be undefined in some or all of these cases. +Here are reasons for returning x**0 = 1 always: .Bl -enum -width indent .It Any program that already tests whether x is zero (or infinite or \*(Na) before computing x**0 cannot care -whether 0**0 = 1 or not. Any program that depends -upon 0**0 to be invalid is dubious anyway since that +whether 0**0 = 1 or not. +Any program that depends upon 0**0 to be invalid is dubious anyway since that expression's meaning and, if invalid, its consequences vary from one computer system to another. .It diff --git a/lib/libm/man/hypot.3 b/lib/libm/man/hypot.3 index c750fe520e4..16e1d468701 100644 --- a/lib/libm/man/hypot.3 +++ b/lib/libm/man/hypot.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: hypot.3,v 1.9 2003/05/08 09:09:45 jmc Exp $ +.\" $OpenBSD: hypot.3,v 1.10 2003/05/20 09:17:51 jmc Exp $ .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. .\" @@ -57,7 +57,7 @@ The and .Fn cabs functions -computes the +compute the sqrt(x*x+y*y) in such a way that underflow will not happen, and overflow occurs only if the final result deserves it. @@ -104,7 +104,7 @@ same is true on a .Tn VAX . But programmers on machines other than a .Tn VAX -(if has no \*(If) +(it has no \*(If) might be surprised at first to discover that .Fn hypot "\(+-\*(If" "\*(Na" = +\*(If. diff --git a/lib/libm/man/ieee.3 b/lib/libm/man/ieee.3 index 1b5e354d3b1..a3e4598f84f 100644 --- a/lib/libm/man/ieee.3 +++ b/lib/libm/man/ieee.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ieee.3,v 1.7 2003/02/28 19:58:41 jason Exp $ +.\" $OpenBSD: ieee.3,v 1.8 2003/05/20 09:17:51 jmc Exp $ .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. .\" @@ -48,7 +48,7 @@ .Nm remainderf , .Nm scalbn , .Nm scalbnf -.Nd Functions for IEEE arithmetic +.Nd functions for IEEE arithmetic .Sh SYNOPSIS .Fd #include <math.h> .Ft double @@ -100,7 +100,7 @@ zero is returned .Pf \\*(Ba Ns Fa x Ns \\*(Ba = \*(If or .Fa x -is \*(Na +is \*(Na. The .Fn finitef function is a single precision version of @@ -156,8 +156,8 @@ moreover if 1/2 then .Fa n -is even. Consequently -the remainder is computed exactly and +is even. +Consequently, the remainder is computed exactly and .Sm off .Pf \\*(Ba Fa r No \\*(Ba .Sm on diff --git a/lib/libm/man/infnan.3 b/lib/libm/man/infnan.3 index 77092d869b5..4a932767f34 100644 --- a/lib/libm/man/infnan.3 +++ b/lib/libm/man/infnan.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: infnan.3,v 1.6 2003/03/06 20:13:15 jmc Exp $ +.\" $OpenBSD: infnan.3,v 1.7 2003/05/20 09:17:51 jmc Exp $ .\" .\" Copyright (c) 1985, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -54,8 +54,8 @@ Floating\-Point Arithmetic will be simulated in .Tn UNIX on the .Tn DEC VAX -by using its Reserved Operands. Meanwhile, the -Invalid, Overflow and Divide\-by\-Zero exceptions of the +by using its Reserved Operands. +Meanwhile, the Invalid, Overflow and Divide\-by\-Zero exceptions of the .Tn IEEE standard are being approximated on a .Tn VAX @@ -91,7 +91,8 @@ exceptions, it calls with an appropriate value of .Fa iarg . Then a -reserved operand fault stops computation. But +reserved operand fault stops computation. +But .Fn infnan could be replaced by a function with the same name that returns @@ -100,15 +101,15 @@ variable .Va errno , and allows computation to resume. Alternatively, the Reserved Operand Fault Handler could be -changed to respond by returning that plausible value, etc. +changed to respond by returning that plausible value, etc., instead of aborting. .Pp In the table below, the first two columns show various exceptions signaled by the .Tn IEEE standard, and the default -result it prescribes. The third column shows what value is -given to +result it prescribes. +The third column shows what value is given to .Fa iarg by functions in .Em libm @@ -120,14 +121,15 @@ under analogous circumstances on a Currently .Fn infnan stops computation under all those -circumstances. The last two columns offer an alternative; +circumstances. +The last two columns offer an alternative; they suggest a setting for .Va errno and a value for a revised .Fn infnan -to return. And a C program to -implement that suggestion follows. +to return. +And a C program to implement that suggestion follows. .sp 0.5 .Bd -filled -offset indent .Bl -column "IEEE Sig" "IEEE Default" XXERANGE ERANGExEDOM diff --git a/lib/libm/man/sin.3 b/lib/libm/man/sin.3 index 272b8b65c78..c3277d21e03 100644 --- a/lib/libm/man/sin.3 +++ b/lib/libm/man/sin.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sin.3,v 1.8 2003/02/27 04:44:46 jason Exp $ +.\" $OpenBSD: sin.3,v 1.9 2003/05/20 09:17:51 jmc Exp $ .\" Copyright (c) 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -51,7 +51,7 @@ The function computes the sine of .Fa x (measured in radians). -The +The .Fn sinf function is a single precision version of .Fn sin . @@ -72,7 +72,6 @@ functions return the sine value. .Xr atan2 3 , .Xr cosh 3 , .Xr math 3 , -.Xr sin 3 , .Xr sinh 3 , .Xr tan 3 , .Xr tanh 3 diff --git a/lib/libm/man/sinh.3 b/lib/libm/man/sinh.3 index 42f188c4180..58d4f019eff 100644 --- a/lib/libm/man/sinh.3 +++ b/lib/libm/man/sinh.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sinh.3,v 1.8 2003/02/27 04:44:46 jason Exp $ +.\" $OpenBSD: sinh.3,v 1.9 2003/05/20 09:17:51 jmc Exp $ .\" Copyright (c) 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -59,7 +59,7 @@ The and .Fn sinhf functions return the hyperbolic sine value unless -the magnitude +the magnitude of .Fa x is too large; in this event, the global variable |