diff options
author | das <das@FreeBSD.org> | 2005-01-14 23:28:28 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2005-01-14 23:28:28 +0000 |
commit | df8ce09fbda51b1a29af2e321a4c4feb4543aefc (patch) | |
tree | 7aa790913ac8bac811e6dd89164c064b37167b07 /lib/msun/man/exp.3 | |
parent | 2fe7b09cb198e42356fd30dbc005daff0809ff0c (diff) | |
download | FreeBSD-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/exp.3')
-rw-r--r-- | lib/msun/man/exp.3 | 50 |
1 files changed, 10 insertions, 40 deletions
diff --git a/lib/msun/man/exp.3 b/lib/msun/man/exp.3 index 62e9e3e..326af58 100644 --- a/lib/msun/man/exp.3 +++ b/lib/msun/man/exp.3 @@ -32,7 +32,7 @@ .\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91 .\" $FreeBSD$ .\" -.Dd July 31, 1991 +.Dd January 14, 2005 .Dt EXP 3 .Os .Sh NAME @@ -182,49 +182,18 @@ is exact until it is bigger than 2**56 on a These functions will return the appropriate computation unless an error occurs or an argument is out of range. The functions -.Fn exp , -.Fn expm1 , -.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 functions .Fn pow x y -checks to see if +and +.Fn powf x y +raise an invalid exception and return an \*(Na if .Fa x < 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 -> 0, by -.Fn log1p -unless -.Fa x -> \-1. +is not an integer. +An attempt to take the logarithm of \*(Pm0 will result in +a divide-by-zero exception, and an infinity will be returned. +An attempt to take the logarithm of a negative number will +result in an invalid exception, and an \*(Na will be generated. .Sh NOTES The functions exp(x)\-1 and log(1+x) are called expm1 and logp1 in @@ -304,6 +273,7 @@ then \*(Na**0 = 1 too because x**0 = 1 for all finite and infinite x, i.e., independently of x. .El .Sh SEE ALSO +.Xr fenv 3 , .Xr math 3 .Sh HISTORY A |