Remove unnecessary calculation

This commit is contained in:
sapics 2015-10-24 11:36:21 +09:00 committed by Jürg Lehni
parent c0a5739254
commit 0050984d83

View file

@ -337,10 +337,6 @@ var Numerical = new function() {
// Newton's. Divide by ec to avoid x0 crossing over a
// root.
x0 = qd === 0 ? x : x - q / qd / ec;
if (x0 === x) {
x = x0;
break;
}
} while (s * x0 > s * x);
// Adjust the coefficients for the quadratic.
if (abs(a) * x * x > abs(d / x)) {