[poincare/solver] Fix typo

This commit is contained in:
Ruben Dashyan
2020-02-26 16:45:25 +01:00
committed by EmilieNumworks
parent 9a79081b47
commit 74f7705413

View File

@@ -133,7 +133,7 @@ double Solver::BrentRoot(double ax, double bx, double precision, ValueAtAbscissa
double xm = 0.5*(c-b);
if (std::fabs(xm) <= tol1 || fb == 0.0) {
double fbcMiddle = evaluation(0.5*(b+c), context, complexFormat, angleUnit, context1, context2, context3);
double isContinuous = (fb <= fbcMiddle && fbcMiddle <= fc) || (fc <= fbcMiddle && fbcMiddle <= fb);
bool isContinuous = (fb <= fbcMiddle && fbcMiddle <= fc) || (fc <= fbcMiddle && fbcMiddle <= fb);
if (isContinuous) {
return b;
}