From 523b9ea592a0863ffaf36a4823d37f81ff470e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 18 Oct 2013 11:50:36 +0200 Subject: [PATCH] Fix syntax error. --- src/util/Numerical.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Numerical.js b/src/util/Numerical.js index d4fc0364..9be79530 100644 --- a/src/util/Numerical.js +++ b/src/util/Numerical.js @@ -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;