2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-24 04:02:18 +00:00

Reverted nc=0 condition and changed relaxed test conditions

This commit is contained in:
Jacob Hass
2026-02-12 11:18:34 -08:00
parent 49bd13439d
commit 2a9394a655
2 changed files with 13 additions and 10 deletions

View File

@@ -336,7 +336,7 @@ void test_spots(RealType, const char* name = nullptr)
for (RealType x : x_vals)
{
RealType P = cdf(dist_no_centrality, x);
BOOST_CHECK_LE(dist.find_non_centrality(x, a, b, P), boost::math::tools::min_value<RealType>() * 10);
BOOST_CHECK_LE(dist.find_non_centrality(x, a, b, P), tolerance);
}
// Case when P=1 or P=0
BOOST_MATH_CHECK_THROW(dist.find_non_centrality(x, a, b, 1), std::domain_error);