summaryrefslogtreecommitdiff
path: root/sinh.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-13 11:41:39 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-13 11:41:39 +0000
commit5b028b20d51c6229fd5f9eeed94ee953032d35cf (patch)
tree3c1189b5042997b8753b191f12b57ed3814d137e /sinh.c
parentf621c4664ae6c2fd29da01cd6b39ee6d1efc3f56 (diff)
downloadmpfr-5b028b20d51c6229fd5f9eeed94ee953032d35cf.tar.gz
Add support for FAST_COMPUTE_IS_SMALL_INPUT.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3552 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sinh.c')
-rw-r--r--sinh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sinh.c b/sinh.c
index decee31f3..b871d049c 100644
--- a/sinh.c
+++ b/sinh.c
@@ -56,6 +56,9 @@ mpfr_sinh (mpfr_ptr y, mpfr_srcptr xt, mp_rnd_t rnd_mode)
}
}
+ /* sinh(x) = x + x^3/6 + ... so the error is < 2^(3*EXP(x)-2) */
+ MPFR_FAST_COMPUTE_IF_SMALL_INPUT (y, xt, -2*MPFR_GET_EXP(xt)+2,1,rnd_mode, );
+
MPFR_TMP_INIT_ABS (x, xt);
{