summaryrefslogtreecommitdiff
path: root/tan.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2007-06-28 07:59:28 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2007-06-28 07:59:28 +0000
commiteafe839ea1ae31ba32c6c622713a1f7e081a0814 (patch)
treec78376cbbce351104eb59da8e3a04212af1634f9 /tan.c
parentc11baac01cd3d4ba2e8d26c1f26055a64121c422 (diff)
downloadmpfr-eafe839ea1ae31ba32c6c622713a1f7e081a0814.tar.gz
fixed several problems with huge arguments in periodic functions
mpfr_sin: complete rewrite, using mpfr_remainder for argument reduction mpfr_sin_cos: ditto git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4574 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tan.c')
-rw-r--r--tan.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tan.c b/tan.c
index ab359784c..4fe9b3a50 100644
--- a/tan.c
+++ b/tan.c
@@ -62,10 +62,6 @@ mpfr_tan (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
/* Compute initial precision */
precy = MPFR_PREC (y);
m = precy + MPFR_INT_CEIL_LOG2 (precy) + 13;
- if (MPFR_GET_EXP (x) > 0)
- m += MPFR_GET_EXP (x) / 3;
- else
- m += -MPFR_GET_EXP (x);
MPFR_GROUP_INIT_2 (group, m, s, c);
MPFR_ZIV_INIT (loop, m);