Fix various JS linting problems.

This commit is contained in:
Jürg Lehni 2015-10-27 23:35:30 +01:00
parent ac7c272401
commit 8eb0dcc87d
7 changed files with 19 additions and 19 deletions
src/util

View file

@ -312,10 +312,10 @@ var Numerical = new function() {
// iteration) and solve the quadratic.
x = -(b / a) / 3;
// Evaluate q, q', b1 and c2 at x
tmp = a * x,
b1 = tmp + b,
c2 = b1 * x + c,
qd = (tmp + b1) * x + c2,
tmp = a * x;
b1 = tmp + b;
c2 = b1 * x + c;
qd = (tmp + b1) * x + c2;
q = c2 * x + d;
// Get a good initial approximation.
t = q /a;
@ -329,10 +329,10 @@ var Numerical = new function() {
do {
x = x0;
// Evaluate q, q', b1 and c2 at x
tmp = a * x,
b1 = tmp + b,
c2 = b1 * x + c,
qd = (tmp + b1) * x + c2,
tmp = a * x;
b1 = tmp + b;
c2 = b1 * x + c;
qd = (tmp + b1) * x + c2;
q = c2 * x + d;
// Newton's. Divide by ec to avoid x0 crossing over a
// root.