summaryrefslogtreecommitdiff
path: root/src/pow.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-06-20 13:59:31 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-06-20 13:59:31 +0000
commit9f16305a45eee7e5728c41c8623d01a36d167357 (patch)
treed088e8318a65e7e713d27b6c673aef3dbffba713 /src/pow.c
parent3dc66286f6d939f4e1e2079722a8ba052c827c87 (diff)
downloadmpfr-9f16305a45eee7e5728c41c8623d01a36d167357.tar.gz
[src] Conversion into UTF-8 (only comments were concerned).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7717 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/pow.c')
-rw-r--r--src/pow.c12
1 files changed, 6 insertions, 6 deletions
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.