From 120dce80a4e8855b56c49493ec0071da4b5a607e Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 20 Apr 2019 18:44:28 +0200 Subject: Lower precision frmo 1e-9 to 1e-5 in C++ code --- aberth/aberth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aberth') 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; -- cgit v1.2.3-70-g09d2