summaryrefslogtreecommitdiff
path: root/expm1.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2005-04-25 12:51:56 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2005-04-25 12:51:56 +0000
commitcab2f2aa4c2d3c90ec67c3727995989a87bff1f9 (patch)
tree0994fb49d1a958a50420976f92e51dc0c434176e /expm1.c
parent7912da98b022ae24d81c69b96d9a367672b7f37a (diff)
downloadmpfr-cab2f2aa4c2d3c90ec67c3727995989a87bff1f9.tar.gz
improved expm1/log1p for small argument
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3487 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'expm1.c')
-rw-r--r--expm1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expm1.c b/expm1.c
index 914afa3e0..dec6b90b5 100644
--- a/expm1.c
+++ b/expm1.c
@@ -73,7 +73,7 @@ mpfr_expm1 (mpfr_ptr y, mpfr_srcptr x , mp_rnd_t rnd_mode)
/* compute the precision of intermediary variable */
/* the optimal number of bits : see algorithms.tex */
- Nt = Ny + MPFR_INT_CEIL_LOG2 (Nt) + 5;
+ Nt = Ny + MPFR_INT_CEIL_LOG2 (Ny) + 6;
/* if |x| is smaller than 2^(-e), we will loose about e bits in the
subtraction exp(x) - 1 */