diff options
author | daney <daney@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-11-16 14:00:29 +0000 |
---|---|---|
committer | daney <daney@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-11-16 14:00:29 +0000 |
commit | dcca0aa14ba642ebe37f45ff4116fefefc15a581 (patch) | |
tree | 23f3f0de5d5710a3f326a23b4c0873c517599171 /atanh.c | |
parent | 90b5547a88b7a3bed5a0daf387a9351c28e301e6 (diff) | |
download | mpfr-dcca0aa14ba642ebe37f45ff4116fefefc15a581.tar.gz |
remove math.h
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1553 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'atanh.c')
-rw-r--r-- | atanh.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -19,8 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <limits.h> -#include <math.h> #include "gmp.h" #include "gmp-impl.h" #include "mpfr.h" @@ -117,7 +115,8 @@ mpfr_atanh (mpfr_ptr y, mpfr_srcptr xt , mp_rnd_t rnd_mode) mpfr_div_2exp(t,te,1,GMP_RNDN); /* (1/2)*ln((1+xt)/(1-xt))*/ /* estimation of the error see- algorithms.ps*/ - err=Nt-_mpfr_ceil_log2(1+5*pow(2,1-MPFR_EXP(t))); + /* err=Nt-_mpfr_ceil_log2(1+5*pow(2,1-MPFR_EXP(t)));*/ + err=Nt-(MAX(4-MPFR_EXP(t),0)+1); /* actualisation of the precision */ Nt += 10; @@ -139,3 +138,5 @@ mpfr_atanh (mpfr_ptr y, mpfr_srcptr xt , mp_rnd_t rnd_mode) + + |