diff options
Diffstat (limited to 'lib/libm/common_source')
| -rw-r--r-- | lib/libm/common_source/exp.3 | 2 | ||||
| -rw-r--r-- | lib/libm/common_source/j0.3 | 4 | ||||
| -rw-r--r-- | lib/libm/common_source/pow.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/libm/common_source/exp.3 b/lib/libm/common_source/exp.3 index e8ef437e8a5b..2ab8ec78416c 100644 --- a/lib/libm/common_source/exp.3 +++ b/lib/libm/common_source/exp.3 @@ -138,7 +138,7 @@ is exact until it is bigger than 2**56 on a .Tn IEEE 754. .Sh RETURN VALUES -These functions will return the approprate computation unless an error +These functions will return the appropriate computation unless an error occurs or an argument is out of range. The functions .Fn exp , diff --git a/lib/libm/common_source/j0.3 b/lib/libm/common_source/j0.3 index 8f02dfb83a57..49b74d1619f8 100644 --- a/lib/libm/common_source/j0.3 +++ b/lib/libm/common_source/j0.3 @@ -87,7 +87,7 @@ compute the linearly independent .Em order 1, respectively, for the -postive +positive .Em integer value .Fa x @@ -97,7 +97,7 @@ the function computes the .Em Bessel function of the second kind for the integer order .Fa n -for the postive +for the positive .Em integer value .Fa x diff --git a/lib/libm/common_source/pow.c b/lib/libm/common_source/pow.c index a10fcd7e71d2..fe665f023bc1 100644 --- a/lib/libm/common_source/pow.c +++ b/lib/libm/common_source/pow.c @@ -174,7 +174,7 @@ pow_P(x, y) double x, y; #endif { struct Double s, t, log__D(); - double exp__D(), huge = 1e300, tiny = 1e-300; + double exp__D(), tiny = 1e-300; if (x == zero) return ((y>zero)? x : one/x); @@ -184,7 +184,7 @@ pow_P(x, y) double x, y; if (x < 1) return(tiny*tiny); else if (_IEEE) - return (huge*huge); + return (HUGE_VAL*HUGE_VAL); else return (infnan(ERANGE)); |
