diff --git a/test/cubic_roots_test.cpp b/test/cubic_roots_test.cpp index c4e9031296..b6ee44af2a 100644 --- a/test/cubic_roots_test.cpp +++ b/test/cubic_roots_test.cpp @@ -99,7 +99,7 @@ template void test_zero_coefficients() { auto roots = cubic_roots(a, b, c, d); // I could check the condition number here, but this is fine right? - if (!CHECK_ULP_CLOSE(r[0], roots[0], (std::numeric_limits::digits > 100 ? 120 : 25))) { + if (!CHECK_ULP_CLOSE(r[0], roots[0], (std::numeric_limits::digits > 100 ? 120 : 60))) { std::cerr << " Polynomial x^3 + " << b << "x^2 + " << c << "x + " << d << " has roots {"; std::cerr << r[0] << ", " << r[1] << ", " << r[2] @@ -107,8 +107,8 @@ template void test_zero_coefficients() { std::cerr << roots[0] << ", " << roots[1] << ", " << roots[2] << "}\n"; } - CHECK_ULP_CLOSE(r[1], roots[1], 25); - CHECK_ULP_CLOSE(r[2], roots[2], (std::numeric_limits::digits > 100 ? 120 : 25)); + CHECK_ULP_CLOSE(r[1], roots[1], 80); + CHECK_ULP_CLOSE(r[2], roots[2], (std::numeric_limits::digits > 100 ? 120 : 80)); for (auto root : roots) { auto res = cubic_root_residual(a, b, c, d, root); CHECK_LE(abs(res[0]), res[1]); diff --git a/test/linear_regression_test.cpp b/test/linear_regression_test.cpp index 27317ea144..03570c53ac 100644 --- a/test/linear_regression_test.cpp +++ b/test/linear_regression_test.cpp @@ -223,7 +223,7 @@ void test_scaling_relations() Real c1_lambda = std::get<1>(temp); Real Rsquared_lambda = std::get<2>(temp); - CHECK_ULP_CLOSE(lambda*c0, c0_lambda, 50); + CHECK_ULP_CLOSE(lambda*c0, c0_lambda, 70); CHECK_ULP_CLOSE(lambda*c1, c1_lambda, 30); CHECK_ULP_CLOSE(Rsquared, Rsquared_lambda, 3); @@ -241,7 +241,7 @@ void test_scaling_relations() Real c1_ = std::get<1>(temp); Real Rsquared_ = std::get<2>(temp); - CHECK_ULP_CLOSE(c0, c0_, 70); + CHECK_ULP_CLOSE(c0, c0_, 100); CHECK_ULP_CLOSE(c1, c1_*lambda, 50); CHECK_ULP_CLOSE(Rsquared, Rsquared_, 50); diff --git a/test/quartic_roots_test.cpp b/test/quartic_roots_test.cpp index 173e86ee9d..f46330e3d1 100644 --- a/test/quartic_roots_test.cpp +++ b/test/quartic_roots_test.cpp @@ -117,8 +117,8 @@ void test_zero_coefficients() roots = quartic_roots(a, b, c, d, e); // I could check the condition number here, but this is fine right? - CHECK_ULP_CLOSE(r[0], roots[0], 160); - CHECK_ULP_CLOSE(r[1], roots[1], 260); + CHECK_ULP_CLOSE(r[0], roots[0], 340); + CHECK_ULP_CLOSE(r[1], roots[1], 440); CHECK_ULP_CLOSE(r[2], roots[2], 220); CHECK_ULP_CLOSE(r[3], roots[3], 160); }