summaryrefslogtreecommitdiff
path: root/atanh.c
diff options
context:
space:
mode:
authordaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 14:00:29 +0000
committerdaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 14:00:29 +0000
commitdcca0aa14ba642ebe37f45ff4116fefefc15a581 (patch)
tree23f3f0de5d5710a3f326a23b4c0873c517599171 /atanh.c
parent90b5547a88b7a3bed5a0daf387a9351c28e301e6 (diff)
downloadmpfr-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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/atanh.c b/atanh.c
index 49c7523dd..b59f72659 100644
--- a/atanh.c
+++ b/atanh.c
@@ -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)
+
+