Skip to content

Commit

Permalink
Fix typo in formula
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Mar 18, 2024
1 parent 2fa7306 commit 65cdb2a
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 @@ -306,7 +306,7 @@ T RiemannR_inverse(T x)
term = (RiemannR(t) - x) / RiemannR_prime(t);
else
// Converges faster for large x
term = (RiemannR(t) - x) / std::log(t);
term = (RiemannR(t) - x) * std::log(t);

// Not converging anymore
if (std::abs(term) >= std::abs(old_term))
Expand Down

0 comments on commit 65cdb2a

Please sign in to comment.