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

Relaxed constraints on returning nc=0

This commit is contained in:
Jacob Hass
2026-02-10 18:10:08 -08:00
parent e7650476c7
commit 07bf86f221

View File

@@ -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<RealType>()) / p) <= 1e-7){
if (abs(f(tools::min_value<RealType>()) / p) <= 1e-6){
return 0;
}