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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user