aboutsummaryrefslogtreecommitdiff
path: root/aberth
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-04-20 18:44:28 +0200
committertomsmeding <tom.smeding@gmail.com>2019-04-20 18:44:28 +0200
commit120dce80a4e8855b56c49493ec0071da4b5a607e (patch)
tree7ef738f5b35023eb89af9174e34ae7dbddd83e1d /aberth
parent86f2bdfd5767ddb79d2404b1a13116d01690e1e6 (diff)
Lower precision frmo 1e-9 to 1e-5 in C++ code
Diffstat (limited to 'aberth')
-rw-r--r--aberth/aberth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/aberth/aberth.cpp b/aberth/aberth.cpp
index 42e3106..13883f7 100644
--- a/aberth/aberth.cpp
+++ b/aberth/aberth.cpp
@@ -166,7 +166,7 @@ struct AberthState {
newapprox[i] = approx[i] - offsets[i];
double sval = eval(boundPoly, abs(newapprox[i]));
- if (abs(pval) > 1e-9 * sval) allConverged = false;
+ if (abs(pval) > 1e-5 * sval) allConverged = false;
}
approx = newapprox;