From f5f403a4a6a3e552a82bcad7d883c3355d9d171c Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sun, 4 Jan 2026 11:47:48 +0000 Subject: [PATCH] Tweak expected error rates. --- test/test_igamma.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_igamma.hpp b/test/test_igamma.hpp index 3ae30c9a7..9f86fdb3f 100644 --- a/test/test_igamma.hpp +++ b/test/test_igamma.hpp @@ -275,10 +275,10 @@ void test_spots(T, const char* name = nullptr) BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(50), static_cast(699.25)), static_cast(-522.7927997457481265511084805522296021540768033975669071565674196L), tolerance); BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(50), static_cast(999.75)), static_cast(-805.7977867938474339107474131612354353193501692041340771552419902L), tolerance); BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(50), static_cast(1000.25)), static_cast(-806.2733124989172792095030711884568388681331032891850662521501582L), tolerance); - BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(800), static_cast(999.75)), static_cast(-24.33274293617739453303937714319703386675839030466670622049929011L), tolerance); + BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(800), static_cast(999.75)), static_cast(-24.33274293617739453303937714319703386675839030466670622049929011L), tolerance * 2); BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(800), static_cast(1000.25)), static_cast(-24.43514173634027477093666725985191846106997808357863808910970142L), tolerance * (boost::math::tools::digits() > 54 ? 20 : 1)); // Once we get large a,x then error start to accumulate no matter what we do: - BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(1200), static_cast(1249.75)), static_cast(-2.565496161584661216769813239648606145255794643472303927896044375L), tolerance * (std::is_floating_point::value ? 1 : 2)); + BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(1200), static_cast(1249.75)), static_cast(-2.565496161584661216769813239648606145255794643472303927896044375L), tolerance * (std::is_floating_point::value ? 1 : 4)); BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(1200), static_cast(1250.25)), static_cast(-2.591934862117586205519309712218581885256650074210410262843591453L), tolerance * (std::is_same::value ? 1 : 50)); BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(2200), static_cast(2249.75)), static_cast(-1.933779894897391651410597618307863427927461116308937004149240320L), tolerance * (std::is_floating_point::value ? 1 : 10)); BOOST_CHECK_CLOSE(::boost::math::lgamma_q(static_cast(2200), static_cast(2250.25)), static_cast(-1.950346484067948344620463026377077515919992808640737320057812268L), tolerance * (std::is_same::value ? 1 : (std::is_floating_point::value ? 100 : 200)));