diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2013-08-01 13:34:41 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2013-08-01 13:34:41 +0000 |
commit | a1004c407a5701415b485ada92959283a6ec2f77 (patch) | |
tree | a6fa4ead0e533abf525885933d249e3072d094f4 /src | |
parent | aa71ec5bea49233c10262ccab654c6b726a7aa08 (diff) | |
download | mpfr-a1004c407a5701415b485ada92959283a6ec2f77.tar.gz |
[src] Improved some comments with "0", about its sign.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8630 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src')
-rw-r--r-- | src/acos.c | 2 | ||||
-rw-r--r-- | src/acosh.c | 2 | ||||
-rw-r--r-- | src/log.c | 2 | ||||
-rw-r--r-- | src/rec_sqrt.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/acos.c b/src/acos.c index 5ab3626a6..738002326 100644 --- a/src/acos.c +++ b/src/acos.c @@ -75,7 +75,7 @@ mpfr_acos (mpfr_ptr acos, mpfr_srcptr x, mpfr_rnd_t rnd_mode) } else { - if (MPFR_IS_POS_SIGN (sign)) /* acos(+1) = 0 */ + if (MPFR_IS_POS_SIGN (sign)) /* acos(+1) = +0 */ return mpfr_set_ui (acos, 0, rnd_mode); else /* acos(-1) = Pi */ return mpfr_const_pi (acos, rnd_mode); diff --git a/src/acosh.c b/src/acosh.c index d58f73e4f..15cc3ecec 100644 --- a/src/acosh.c +++ b/src/acosh.c @@ -62,7 +62,7 @@ mpfr_acosh (mpfr_ptr y, mpfr_srcptr x , mpfr_rnd_t rnd_mode) } else if (MPFR_UNLIKELY (comp == 0)) { - MPFR_SET_ZERO (y); /* acosh(1) = 0 */ + MPFR_SET_ZERO (y); /* acosh(1) = +0 */ MPFR_SET_POS (y); MPFR_RET (0); } @@ -93,7 +93,7 @@ mpfr_log (mpfr_ptr r, mpfr_srcptr a, mpfr_rnd_t rnd_mode) MPFR_SET_NAN (r); MPFR_RET_NAN; } - /* If a is 1, the result is 0 */ + /* If a is 1, the result is +0 */ else if (MPFR_UNLIKELY (MPFR_GET_EXP (a) == 1 && mpfr_cmp_ui (a, 1) == 0)) { MPFR_SET_ZERO (r); diff --git a/src/rec_sqrt.c b/src/rec_sqrt.c index ca5050b92..1e1f46615 100644 --- a/src/rec_sqrt.c +++ b/src/rec_sqrt.c @@ -456,7 +456,7 @@ mpfr_rec_sqrt (mpfr_ptr r, mpfr_srcptr u, mpfr_rnd_t rnd_mode) } else if (MPFR_IS_ZERO(u)) /* 1/sqrt(+0) = 1/sqrt(-0) = +Inf */ { - /* 0+ or 0- */ + /* +0 or -0 */ MPFR_SET_INF(r); MPFR_SET_POS(r); mpfr_set_divby0 (); |