Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm/man Punctuation nits, use standard headers, sort se...



details:   https://anonhg.NetBSD.org/src/rev/ba32f47a8de3
branches:  trunk
changeset: 522505:ba32f47a8de3
user:      wiz <wiz%NetBSD.org@localhost>
date:      Wed Feb 20 11:51:15 2002 +0000

description:
Punctuation nits, use standard headers, sort sections, remove Tahoe references.

diffstat:

 lib/libm/man/exp.3 |  99 +++++++++++++++++++++++++----------------------------
 1 files changed, 47 insertions(+), 52 deletions(-)

diffs (137 lines):

diff -r ff634e70aaa3 -r ba32f47a8de3 lib/libm/man/exp.3
--- a/lib/libm/man/exp.3        Wed Feb 20 11:47:55 2002 +0000
+++ b/lib/libm/man/exp.3        Wed Feb 20 11:51:15 2002 +0000
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)exp.3        6.12 (Berkeley) 7/31/91
-.\"    $NetBSD: exp.3,v 1.17 2002/02/07 07:00:49 ross Exp $
+.\"    $NetBSD: exp.3,v 1.18 2002/02/20 11:51:15 wiz Exp $
 .\"
 .Dd July 31, 1991
 .Dt EXP 3
@@ -91,7 +91,7 @@
 The
 .Fn log
 function computes the value of the natural logarithm of argument
-.Fa x.
+.Fa x .
 .Pp
 The
 .Fn log10
@@ -112,7 +112,49 @@
 .Ar x
 to the exponent
 .Ar y .
-.Sh ERROR (due to Roundoff etc.)
+.Sh RETURN VALUES
+These functions will return the appropriate computation unless an error
+occurs or an argument is out of range.
+The functions
+.Fn exp ,
+.Fn expm1
+and
+.Fn pow
+detect if the computed value will overflow,
+set the global variable
+.Va errno
+to
+.Er ERANGE
+and cause a reserved operand fault on a
+.Tn VAX .
+The function
+.Fn pow x y
+checks to see if
+.Fa x
+\*[Lt] 0 and
+.Fa y
+is not an integer, in the event this is true,
+the global variable
+.Va errno
+is set to
+.Er EDOM
+and on the
+.Tn VAX
+generate a reserved operand fault.
+On a
+.Tn VAX ,
+.Va errno
+is set to
+.Er EDOM
+and the reserved operand is returned
+by log unless
+.Fa x
+\*[Gt] 0, by
+.Fn log1p
+unless
+.Fa x
+\*[Gt] \-1.
+.Sh ERRORS
 exp(x), log(x), expm1(x) and log1p(x) are accurate to within
 an
 .Em ulp ,
@@ -157,54 +199,6 @@
 2**53 for
 .Tn IEEE
 754.
-.Sh RETURN VALUES
-These functions will return the appropriate computation unless an error
-occurs or an argument is out of range.
-The functions
-.Fn exp ,
-.Fn expm1
-and
-.Fn pow
-detect if the computed value will overflow,
-set the global variable
-.Va errno
-to
-.Er ERANGE
-and cause a reserved operand fault on a
-.Tn VAX
-or
-.Tn Tahoe .
-The function
-.Fn pow x y
-checks to see if
-.Fa x
-\*[Lt] 0 and
-.Fa y
-is not an integer, in the event this is true,
-the global variable
-.Va errno
-is set to
-.Er EDOM
-and on the
-.Tn VAX
-and
-.Tn Tahoe
-generate a reserved operand fault.
-On a
-.Tn VAX
-and
-.Tn Tahoe ,
-.Va errno
-is set to
-.Er EDOM
-and the reserved operand is returned
-by log unless
-.Fa x
-\*[Gt] 0, by
-.Fn log1p
-unless
-.Fa x
-\*[Gt] \-1.
 .Sh NOTES
 The functions exp(x)\-1 and log(1+x) are called
 expm1 and logp1 in
@@ -238,7 +232,8 @@
 .Em NaN
 (the reserved
 operand on a
-.Tn VAX ) .  Previous implementations of pow may
+.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



Home | Main Index | Thread Index | Old Index