1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Relax math test.

1997-10-29  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* math/libm-test.c (cbrt_test): Add epsilon for cbrt(0.970299).
This commit is contained in:
Ulrich Drepper
1997-10-29 22:09:37 +00:00
parent dd7d45e838
commit e99ce132ae
2 changed files with 6 additions and 1 deletions

View File

@ -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));
}