From d9c942c32b39399e742c63db32f7e8d6abeed91f Mon Sep 17 00:00:00 2001 From: zimmerma Date: Tue, 27 Jan 2004 08:00:00 +0000 Subject: 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 --- tests/terf.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/terf.c') 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); } -- cgit v1.2.1