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

Changed nc=0 condition

This commit is contained in:
Jacob Hass
2026-02-10 13:11:36 -08:00
parent 794ce3b3a4
commit 02189e7eac

View File

@@ -62,7 +62,7 @@ namespace boost
// and p drops below 1e-7, 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(0) / p) <= 1e-7){
return 0;
}