2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-28 19:32:08 +00:00
[SVN r83283]
This commit is contained in:
John Maddock
2013-03-03 16:32:30 +00:00
parent 51dd944d85
commit cbaf7486e5

View File

@@ -197,7 +197,7 @@ T quadratic_interpolate(const T& a, const T& b, T const& d,
T A = safe_div(T(fd - fb), T(d - b), tools::max_value<T>());
A = safe_div(T(A - B), T(d - a), T(0));
if(a == 0)
if(A == 0)
{
// failure to determine coefficients, try a secant step:
return secant_interpolate(a, b, fa, fb);