diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-05-04 09:27:48 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-05-04 09:27:48 +0000 |
commit | 150f2dcebabbb3eb7ef8833751a166e277aa0ebd (patch) | |
tree | fb461e4644e7b6c4edb7f0e5bdf9ef884091e0c5 /acosh.c | |
parent | df41811f1ecf4f773defab58f3323368528ffa73 (diff) | |
download | mpfr-150f2dcebabbb3eb7ef8833751a166e277aa0ebd.tar.gz |
improved const_euler and eint
removed dependency from input precision in several functions
fixed two bugs in pow (detection of exact cases)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3524 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'acosh.c')
-rw-r--r-- | acosh.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -70,16 +70,14 @@ mpfr_acosh (mpfr_ptr y, mpfr_srcptr x , mp_rnd_t rnd_mode) /* Declaration of the intermediary variables */ mpfr_t t; /* Declaration of the size variables */ - mp_prec_t Nx = MPFR_PREC(x); /* Precision of input variable */ mp_prec_t Ny = MPFR_PREC(y); /* Precision of output variable */ mp_prec_t Nt; /* Precision of the intermediary variable */ mp_exp_t err, exp_te, exp_ti; /* Precision of error */ MPFR_ZIV_DECL (loop); /* compute the precision of intermediary variable */ - Nt = MAX (Nx, Ny); - /* the optimal number of bits : see algorithms.ps */ - Nt = Nt + 4 + MPFR_INT_CEIL_LOG2 (Nt); + /* the optimal number of bits : see algorithms.tex */ + Nt = Ny + 4 + MPFR_INT_CEIL_LOG2 (Ny); /* initialization of intermediary variables */ mpfr_init2 (t, Nt); |