diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-01-27 08:00:00 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-01-27 08:00:00 +0000 |
commit | d9c942c32b39399e742c63db32f7e8d6abeed91f (patch) | |
tree | 9f1cba57c17d717dccce4daeaaf52b4b3ff44a4d /tests/terf.c | |
parent | 7cc179df7803e12907347efbaa7a8c174076490f (diff) | |
download | mpfr-d9c942c32b39399e742c63db32f7e8d6abeed91f.tar.gz |
fixed bugs in atan cbrt erf
added new hard-coded tests
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2648 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/terf.c')
-rw-r--r-- | tests/terf.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/terf.c b/tests/terf.c index 3dc4d6921..133328f88 100644 --- a/tests/terf.c +++ b/tests/terf.c @@ -297,6 +297,19 @@ special (void) exit (1); } + mpfr_set_prec (x, 43); + mpfr_set_prec (y, 64); + mpfr_set_str_binary (x, "-0.1101110110101111100101011101110101101001001e3"); + mpfr_erf (y, x, GMP_RNDU); + mpfr_set_prec (x, 64); + mpfr_set_str_binary (x, "-0.1111111111111111111111111111111111111111111111111111111111111111"); + if (mpfr_cmp (x, y)) + { + printf ("Error: erf for prec=43,64 (13)\n"); + exit (1); + } + + mpfr_clear (x); mpfr_clear (y); } |