Fix syntax error.

This commit is contained in:
Jürg Lehni 2013-10-18 11:50:36 +02:00
parent 89704243b1
commit 523b9ea592

View file

@ -142,7 +142,7 @@ var Numerical = new function() {
var p = b / (2 * a);
var q = c / a;
var p2 = p * p;
if (!abs(p2 - q) < epsilon && p2 < q)
if (p2 < q - epsilon)
return 0;
var s = p2 > q ? sqrt(p2 - q) : 0;
roots[0] = s - p;