From adedffc448186470c063c75ab27461c43e5835d0 Mon Sep 17 00:00:00 2001 From: Kim Walisch Date: Fri, 22 Mar 2024 20:56:52 +0100 Subject: [PATCH] Set RiemannR_inverse(x) max iterations to 10 --- src/RiemannR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RiemannR.cpp b/src/RiemannR.cpp index da733b0cc..d7d4b7e28 100644 --- a/src/RiemannR.cpp +++ b/src/RiemannR.cpp @@ -249,7 +249,7 @@ T RiemannR_inverse(T x) // The condition i < ITERS is required in case the computation // does not converge. This happened on Linux i386 where // the precision of the libc math functions is very limited. - for (int i = 0; i < 100; i++) + for (int i = 0; i < 10; i++) { // term = f(t) / f'(t) // f(t) = RiemannR(t) - x