From 07bf86f221ca255a9c45c84ada4928e6a9522463 Mon Sep 17 00:00:00 2001 From: Jacob Hass Date: Tue, 10 Feb 2026 18:10:08 -0800 Subject: [PATCH] Relaxed constraints on returning nc=0 --- include/boost/math/distributions/non_central_f.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/math/distributions/non_central_f.hpp b/include/boost/math/distributions/non_central_f.hpp index 60d5926a9..c0acc8225 100644 --- a/include/boost/math/distributions/non_central_f.hpp +++ b/include/boost/math/distributions/non_central_f.hpp @@ -59,10 +59,10 @@ namespace boost // Check if nc = 0 (which is just the F-distribution) // When the relative difference between the cdf with nc=0 - // and p drops below 1e-7, the function f becomes + // and p drops below 1e-6, the function f becomes // numerically unstable. Thus, we can't find nc below this point. // See PR 1345 for more details. - if (abs(f(tools::min_value()) / p) <= 1e-7){ + if (abs(f(tools::min_value()) / p) <= 1e-6){ return 0; }