diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-01-15 19:06:33 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-01-15 19:06:33 +0000 |
commit | 63c865ac060120368ee14f28a8c335998c30210e (patch) | |
tree | d607e7485da6f4f19d9beaee554429fb9fb7e8cf /lib/libm | |
parent | 8c61563cc39621275522accfd409a13204e573f1 (diff) |
remove .Tn; from Jan Stary <hans at stare dot cz>
Diffstat (limited to 'lib/libm')
-rw-r--r-- | lib/libm/man/atan2.3 | 14 | ||||
-rw-r--r-- | lib/libm/man/exp.3 | 64 | ||||
-rw-r--r-- | lib/libm/man/hypot.3 | 23 | ||||
-rw-r--r-- | lib/libm/man/infnan.3 | 44 | ||||
-rw-r--r-- | lib/libm/man/lgamma.3 | 9 |
5 files changed, 47 insertions, 107 deletions
diff --git a/lib/libm/man/atan2.3 b/lib/libm/man/atan2.3 index 9cb9ce406a8..394f477da8c 100644 --- a/lib/libm/man/atan2.3 +++ b/lib/libm/man/atan2.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: atan2.3,v 1.16 2013/06/05 03:40:26 tedu Exp $ +.\" $OpenBSD: atan2.3,v 1.17 2015/01/15 19:06:31 schwarze Exp $ .\" Copyright (c) 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)atan2.3 5.1 (Berkeley) 5/2/91 .\" -.Dd $Mdocdate: June 5 2013 $ +.Dd $Mdocdate: January 15 2015 $ .Dt ATAN2 3 .Os .Sh NAME @@ -81,8 +81,7 @@ are zero, the global variable .Va errno is set to .Er EDOM . -On the -.Tn VAX : +On the VAX: .Bl -column atan_(y,x)_:=____ sign(y)_(Pi_atan2(Xy_xX))___ .It Fn atan2 y x No := Ta .Fn atan y/x Ta @@ -114,9 +113,7 @@ The function .Fn atan2 defines "if x > 0," .Fn atan2 0 0 -= 0 on a -.Tn VAX -despite that previously += 0 on a VAX despite that previously .Fn atan2 0 0 may have generated an error message. The reasons for assigning a value to @@ -170,8 +167,7 @@ r := hypot(x,y); ... := \(sr(x\u\s82\s10\d+y\u\s82\s10\d) .It The foregoing formulas need not be altered to cope in a reasonable way with signed zeros and infinities -on a machine that conforms to -.Tn IEEE 754 ; +on a machine that conforms to IEEE 754 ; the versions of .Xr hypot 3 and diff --git a/lib/libm/man/exp.3 b/lib/libm/man/exp.3 index a9054f648f5..c63f2554d84 100644 --- a/lib/libm/man/exp.3 +++ b/lib/libm/man/exp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: exp.3,v 1.28 2013/11/03 18:28:27 martynas Exp $ +.\" $OpenBSD: exp.3,v 1.29 2015/01/15 19:06:31 schwarze Exp $ .\" .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. @@ -29,7 +29,7 @@ .\" .\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91 .\" -.Dd $Mdocdate: November 3 2013 $ +.Dd $Mdocdate: January 15 2015 $ .Dt EXP 3 .Os .Sh NAME @@ -232,10 +232,7 @@ set the global variable .Va errno to .Er ERANGE -and cause a reserved operand fault on a -.Tn VAX -or -.Tn Tahoe . +and cause a reserved operand fault on a VAX or Tahoe. The function .Fn pow x y checks to see if @@ -247,15 +244,8 @@ 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 , +and on the VAX and Tahoe generate a reserved operand fault. +On a VAX and Tahoe, .Va errno is set to .Er EDOM @@ -291,43 +281,27 @@ approaches the over/underflow thresholds until almost as many bits could be lost as are occupied by the floating\-point format's exponent field; that is 8 bits for -.Tn "VAX D" +.Dq VAX D and 11 bits for IEEE 754 Double. No such drastic loss has been exposed by testing; the worst errors observed have been below 20 .Em ulps for -.Tn "VAX D" , +.Dq VAX D , 300 .Em ulps -for -.Tn IEEE -754 Double. +for IEEE 754 Double. Moderate values of .Fn pow are accurate enough that .Fn pow integer integer -is exact until it is bigger than 2**56 on a -.Tn VAX , -2**53 for -.Tn IEEE -754. +is exact until it is bigger than 2**56 on a VAX, +2**53 for IEEE 754. .Sh NOTES The functions exp(x)\-1 and log(1+x) are called -expm1 and logp1 in -.Tn BASIC -on the Hewlett\-Packard -.Tn HP Ns \-71B -and -.Tn APPLE -Macintosh, -.Tn EXP1 -and -.Tn LN1 -in Pascal, exp1 and log1 in C -on -.Tn APPLE -Macintoshes, where they have been provided to make +expm1 and logp1 in BASIC on the Hewlett\-Packard HP-71B +and APPLE Macintosh, EXP1 and LN1 in Pascal, exp1 and log1 in C +on APPLE Macintoshes, where they have been provided to make sure financial calculations of ((1+x)**n\-1)/x, namely expm1(n\(**log1p(x))/x, will be accurate when x is tiny. They also provide accurate inverse hyperbolic functions. @@ -339,15 +313,13 @@ returns x**0 = 1 for all x including x = 0, \*(If .if t \ \(if -(not found on a -.Tn VAX ) , +(not found on a VAX), and .Em \*(Na -(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. +(the reserved operand on a VAX). +Previous implementations of +.Fn 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 diff --git a/lib/libm/man/hypot.3 b/lib/libm/man/hypot.3 index b03565f2978..ba7c01b55f2 100644 --- a/lib/libm/man/hypot.3 +++ b/lib/libm/man/hypot.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: hypot.3,v 1.20 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: hypot.3,v 1.21 2015/01/15 19:06:31 schwarze Exp $ .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)hypot.3 6.7 (Berkeley) 5/6/91 .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: January 15 2015 $ .Dt HYPOT 3 .Os .Sh NAME @@ -97,12 +97,10 @@ and are \*(Na for all .Em finite .Ar v ; -with "reserved operand" in place of "\*(Na", the -same is true on a -.Tn VAX . -But programmers on machines other than a -.Tn VAX -(it has no \*(If) +with +.Dq reserved operand +in place of "\*(Na", the same is true on a VAX. +But programmers on machines other than a VAX (it has no \*(If) might be surprised at first to discover that .Fn hypot "\(+-\*(If" "\*(Na" = +\*(If. @@ -117,12 +115,9 @@ Hence .Fn hypot "\*(If" "v" is independent of .Ar v . -Unlike the reserved operand fault on a -.Tn VAX , -the -.Tn IEEE -\*(Na is designed to -disappear when it turns out to be irrelevant, as it does in +Unlike the reserved operand fault on a VAX, +the IEEE \*(Na is designed to disappear +when it turns out to be irrelevant, as it does in .Fn hypot "\*(If" "\*(Na" . .Sh SEE ALSO .Xr sqrt 3 diff --git a/lib/libm/man/infnan.3 b/lib/libm/man/infnan.3 index 600d22f3587..b0fc7ad9dd7 100644 --- a/lib/libm/man/infnan.3 +++ b/lib/libm/man/infnan.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: infnan.3,v 1.16 2013/11/03 18:28:27 martynas Exp $ +.\" $OpenBSD: infnan.3,v 1.17 2015/01/15 19:06:31 schwarze Exp $ .\" .\" Copyright (c) 1985, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,41 +29,27 @@ .\" .\" @(#)infnan.3 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: November 3 2013 $ +.Dd $Mdocdate: January 15 2015 $ .Dt INFNAN 3 vax .Os .Sh NAME .Nm infnan -.Nd signals invalid floating\-point operations on a -.Tn VAX -(temporary) +.Nd signals invalid floating\-point operations on a VAX (temporary) .Sh SYNOPSIS .In math.h .Ft double .Fn infnan "int iarg" .Sh DESCRIPTION At some time in the future, some of the useful properties of -the Infinities and \*(Nas in the -.Tn IEEE -standard 754 for Binary -Floating\-Point Arithmetic will be simulated in -.Tn UNIX -on the -.Tn DEC VAX -by using its Reserved Operands. +the Infinities and \*(Nas in the IEEE standard 754 +for Binary Floating\-Point Arithmetic will be simulated in UNIX +on the DEC VAX 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 -by calls to a -procedure +IEEE standard are being approximated on a VAX by calls to a procedure .Fn infnan in appropriate places in .Em libm . -When -better exception\-handling is implemented in -.Tn UNIX , -only +When better exception\-handling is implemented in UNIX, only .Fn infnan among the codes in .Em libm @@ -78,9 +64,7 @@ insulate themselves from future changes. Whenever an elementary function code in .Em libm has to -simulate one of the aforementioned -.Tn IEEE -exceptions, it calls +simulate one of the aforementioned IEEE exceptions, it calls .Fn infnan iarg with an appropriate value of .Fa iarg . @@ -98,11 +82,8 @@ Alternatively, the Reserved Operand Fault Handler could be 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. +In the table below, the first two columns show various exceptions +signaled by the IEEE standard, and the default result it prescribes. The third column shows what value is given to .Fa iarg by functions in @@ -110,8 +91,7 @@ by functions in when they invoke .Fn infnan iarg -under analogous circumstances on a -.Tn VAX . +under analogous circumstances on a VAX. Currently .Fn infnan stops computation under all those diff --git a/lib/libm/man/lgamma.3 b/lib/libm/man/lgamma.3 index 914a8df95a4..624567c118b 100644 --- a/lib/libm/man/lgamma.3 +++ b/lib/libm/man/lgamma.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: lgamma.3,v 1.21 2013/08/07 22:20:25 millert Exp $ +.\" $OpenBSD: lgamma.3,v 1.22 2015/01/15 19:06:31 schwarze Exp $ .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)lgamma.3 6.6 (Berkeley) 12/3/92 .\" -.Dd $Mdocdate: August 7 2013 $ +.Dd $Mdocdate: January 15 2015 $ .Dt LGAMMA 3 .Os .Sh NAME @@ -137,10 +137,7 @@ non-positive integers. For large non-integer negative values, .Fn tgamma will underflow. -On the -.Tn VAX , -the reserved operator is returned, -and +On the VAX, the reserved operator is returned, and .Va errno is set to .Er ERANGE . |