summaryrefslogtreecommitdiffstats
path: root/lib/msun/man/exp.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/man/exp.3')
-rw-r--r--lib/msun/man/exp.350
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
OpenPOWER on IntegriCloud