From ddd51d0e1c2384a289b6dedaf9172029ea7260d7 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sun, 12 Dec 2021 16:56:38 +0000 Subject: [PATCH] Update error rates for Apple M1 machines. Fixes https://github.com/boostorg/math/issues/724 --- test/test_bessel_i_prime.cpp | 4 ++++ test/test_bessel_j.cpp | 4 ++++ test/test_root_iterations.cpp | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/test_bessel_i_prime.cpp b/test/test_bessel_i_prime.cpp index 3a2877373e..1d4f84bd8e 100644 --- a/test/test_bessel_i_prime.cpp +++ b/test/test_bessel_i_prime.cpp @@ -58,7 +58,11 @@ void expected_results() "Mac OS", // platform largest_type, // test type(s) ".*", // test data group +#ifdef __arm__ + ".*", 4000, 1500); // test function +#else ".*", 3500, 1500); // test function +#endif // // G++ on Linux, results vary a bit by processor type, // on Itanium results are *much* better than listed here, diff --git a/test/test_bessel_j.cpp b/test/test_bessel_j.cpp index 827a347892..a3b495e8a9 100644 --- a/test/test_bessel_j.cpp +++ b/test/test_bessel_j.cpp @@ -143,7 +143,11 @@ void expected_results() "Mac OS", // platform largest_type, // test type(s) ".*J1.*Tricky.*", // test data group +#ifdef __arm__ + ".*", 4000000, 2000000); // test function +#else ".*", 3000000, 2000000); // test function +#endif add_expected_result( ".*", // compiler ".*", // stdlib diff --git a/test/test_root_iterations.cpp b/test/test_root_iterations.cpp index 1ec1593516..1add84fc08 100644 --- a/test/test_root_iterations.cpp +++ b/test/test_root_iterations.cpp @@ -299,7 +299,7 @@ BOOST_AUTO_TEST_CASE( test_main ) result = ibeta_small_data[i][2]; dr = boost::math::tools::halley_iterate(ibeta_roots_3 >(ibeta_small_data[i][0], ibeta_small_data[i][1], ibeta_small_data[i][5]), 0.5, 0.0, 1.0, 53, iters); BOOST_CHECK_CLOSE_FRACTION(dr, result, std::numeric_limits::epsilon() * 200); -#ifdef __PPC__ +#if defined(__PPC__) || defined(__arm__) BOOST_CHECK_LE(iters, 55); #else BOOST_CHECK_LE(iters, 40);