Skip to content

Commit

Permalink
use log1p
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt committed Oct 4, 2023
1 parent afe6979 commit e1bb472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Li2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ end
# approximation of Re[Li2(x)] for x in [0, 1/2]
# todo(alex): benchmark this routine
function reli2_approx(x::BigFloat)::BigFloat
u = -log(one(x) - x)
u = -log1p(-x)
u2 = u*u

p = u2 # powers of u2
Expand Down

0 comments on commit e1bb472

Please sign in to comment.