From e99ce132ae6cacbc874135c5dcf1e36558a5f2ea Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 29 Oct 1997 22:09:37 +0000 Subject: Relax math test. 1997-10-29 Andreas Jaeger * math/libm-test.c (cbrt_test): Add epsilon for cbrt(0.970299). --- ChangeLog | 4 ++++ math/libm-test.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 37552bb0e7..9834caaac6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1997-10-29 Andreas Jaeger + + * math/libm-test.c (cbrt_test): Add epsilon for cbrt(0.970299). + 1997-10-29 21:20 Ulrich Drepper * libio/strops.c (_IO_str_seekoff): If mode is zero and the read/write diff --git a/math/libm-test.c b/math/libm-test.c index 56f111d88c..c80ed7d261 100644 --- a/math/libm-test.c +++ b/math/libm-test.c @@ -1004,7 +1004,8 @@ cbrt_test (void) check_eps ("cbrt (8) == 2", FUNC(cbrt) (8), 2, CHOOSE (5e-17L, 0, 0)); check_eps ("cbrt (-27) == -3", FUNC(cbrt) (-27.0), -3.0, CHOOSE (3e-16L, 5e-16, 0)); - check ("cbrt (0.970299) == 0.99", FUNC(cbrt) (0.970299), 0.99); + check_eps ("cbrt (0.970299) == 0.99", FUNC(cbrt) (0.970299), 0.99, + CHOOSE (2e-17L, 0, 0)); } -- cgit v1.2.3