summaryrefslogtreecommitdiff
path: root/sinh.c
diff options
context:
space:
mode:
authordaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 14:04:13 +0000
committerdaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 14:04:13 +0000
commitba8d391e54a3b369e81deb4805d1f8bfc654df49 (patch)
tree3babc0f19273aad8c3bf5c50099c2cce74c027cf /sinh.c
parent95025c96893bc0a4c39135a58654c5cd469a66c6 (diff)
downloadmpfr-ba8d391e54a3b369e81deb4805d1f8bfc654df49.tar.gz
remve math.h
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1555 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sinh.c')
-rw-r--r--sinh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sinh.c b/sinh.c
index 65193dd18..2646aad4b 100644
--- a/sinh.c
+++ b/sinh.c
@@ -19,8 +19,7 @@ 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 <stdio.h>
-#include <math.h>
+
#include "gmp.h"
#include "gmp-impl.h"
#include "mpfr.h"
@@ -114,7 +113,8 @@ mpfr_sinh (mpfr_ptr y, mpfr_srcptr xt , mp_rnd_t rnd_mode)
d = MPFR_EXP(te)-MPFR_EXP(t)+2;
/* estimation of the error */
- err = Nt-(_mpfr_ceil_log2(1+pow(2,d)));
+ /* err = Nt-(_mpfr_ceil_log2(1+pow(2,d)));*/
+ err = Nt-(MAX(d,0)+1);
/* actualisation of the precision */
Nt += 10;