diff options
Diffstat (limited to 'cosh.c')
-rw-r--r-- | cosh.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -99,7 +99,7 @@ mpfr_cosh (mpfr_ptr y, mpfr_srcptr xt , mp_rnd_t rnd_mode) mpfr_exp(te,x,GMP_RNDD); /* exp(x) */ mpfr_ui_div(ti,1,te,GMP_RNDU); /* 1/exp(x) */ mpfr_add(t,te,ti,GMP_RNDN); /* exp(x) + 1/exp(x)*/ - mpfr_div_2exp(t,t,1,GMP_RNDN); /* 1/2(exp(x) + 1/exp(x))*/ + mpfr_div_2ui(t,t,1,GMP_RNDN); /* 1/2(exp(x) + 1/exp(x))*/ /* estimation of the error */ err=Nt-3; |