Skip to content

Commit

Permalink
Set RiemannR_inverse(x) max iterations to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Mar 22, 2024
1 parent cf00ccc commit adedffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RiemannR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit adedffc

Please sign in to comment.