summaryrefslogtreecommitdiff
path: root/acosh.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-04 09:27:48 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-04 09:27:48 +0000
commit150f2dcebabbb3eb7ef8833751a166e277aa0ebd (patch)
treefb461e4644e7b6c4edb7f0e5bdf9ef884091e0c5 /acosh.c
parentdf41811f1ecf4f773defab58f3323368528ffa73 (diff)
downloadmpfr-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/acosh.c b/acosh.c
index fccbd1b99..3a0d53b87 100644
--- a/acosh.c
+++ b/acosh.c
@@ -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);