diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-06-28 07:59:28 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-06-28 07:59:28 +0000 |
commit | eafe839ea1ae31ba32c6c622713a1f7e081a0814 (patch) | |
tree | c78376cbbce351104eb59da8e3a04212af1634f9 /tan.c | |
parent | c11baac01cd3d4ba2e8d26c1f26055a64121c422 (diff) | |
download | mpfr-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.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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); |