summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/atan2.c22
-rw-r--r--src/pow.c12
2 files changed, 17 insertions, 17 deletions
diff --git a/src/atan2.c b/src/atan2.c
index 070788935..8c14c91c1 100644
--- a/src/atan2.c
+++ b/src/atan2.c
@@ -67,17 +67,17 @@ mpfr_atan2 (mpfr_ptr dest, mpfr_srcptr y, mpfr_srcptr x, mpfr_rnd_t rnd_mode)
/* atan2(0, 0) does not raise the "invalid" floating-point
exception, nor does atan2(y, 0) raise the "divide-by-zero"
floating-point exception.
- -- atan2(±0, -0) returns ±pi.313)
- -- atan2(±0, +0) returns ±0.
- -- atan2(±0, x) returns ±pi, for x < 0.
- -- atan2(±0, x) returns ±0, for x > 0.
- -- atan2(y, ±0) returns -pi/2 for y < 0.
- -- atan2(y, ±0) returns pi/2 for y > 0.
- -- atan2(±oo, -oo) returns ±3pi/4.
- -- atan2(±oo, +oo) returns ±pi/4.
- -- atan2(±oo, x) returns ±pi/2, for finite x.
- -- atan2(±y, -oo) returns ±pi, for finite y > 0.
- -- atan2(±y, +oo) returns ±0, for finite y > 0.
+ -- atan2(±0, -0) returns ±pi.313)
+ -- atan2(±0, +0) returns ±0.
+ -- atan2(±0, x) returns ±pi, for x < 0.
+ -- atan2(±0, x) returns ±0, for x > 0.
+ -- atan2(y, ±0) returns -pi/2 for y < 0.
+ -- atan2(y, ±0) returns pi/2 for y > 0.
+ -- atan2(±oo, -oo) returns ±3pi/4.
+ -- atan2(±oo, +oo) returns ±pi/4.
+ -- atan2(±oo, x) returns ±pi/2, for finite x.
+ -- atan2(±y, -oo) returns ±pi, for finite y > 0.
+ -- atan2(±y, +oo) returns ±0, for finite y > 0.
*/
if (MPFR_IS_NAN (x) || MPFR_IS_NAN (y))
{
diff --git a/src/pow.c b/src/pow.c
index c18fe9f08..983ae4a43 100644
--- a/src/pow.c
+++ b/src/pow.c
@@ -392,13 +392,13 @@ mpfr_pow_general (mpfr_ptr z, mpfr_srcptr x, mpfr_srcptr y,
/* The computation of z = pow(x,y) is done by
z = exp(y * log(x)) = x^y
For the special cases, see Section F.9.4.4 of the C standard:
- _ pow(±0, y) = ±inf for y an odd integer < 0.
- _ pow(±0, y) = +inf for y < 0 and not an odd integer.
- _ pow(±0, y) = ±0 for y an odd integer > 0.
- _ pow(±0, y) = +0 for y > 0 and not an odd integer.
- _ pow(-1, ±inf) = 1.
+ _ pow(±0, y) = ±inf for y an odd integer < 0.
+ _ pow(±0, y) = +inf for y < 0 and not an odd integer.
+ _ pow(±0, y) = ±0 for y an odd integer > 0.
+ _ pow(±0, y) = +0 for y > 0 and not an odd integer.
+ _ pow(-1, ±inf) = 1.
_ pow(+1, y) = 1 for any y, even a NaN.
- _ pow(x, ±0) = 1 for any x, even a NaN.
+ _ pow(x, ±0) = 1 for any x, even a NaN.
_ pow(x, y) = NaN for finite x < 0 and finite non-integer y.
_ pow(x, -inf) = +inf for |x| < 1.
_ pow(x, -inf) = +0 for |x| > 1.