2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-27 19:12:08 +00:00

Fix bug in root bracketing code

This commit is contained in:
jzmaddock
2015-08-11 18:17:56 +01:00
parent c3793dbff2
commit 8a29241cc3

View File

@@ -112,7 +112,7 @@ void bracket(F f, T& a, T& b, T c, T& fa, T& fb, T& d, T& fd)
}
else if(c >= b - fabs(b) * tol)
{
c = b - fabs(a) * tol;
c = b - fabs(b) * tol;
}
//
// OK, lets invoke f(c):