Skip to content

Commit

Permalink
use more generic fractions
Browse files Browse the repository at this point in the history
  • Loading branch information
Expander committed Sep 20, 2023
1 parent 65204e5 commit 2c495c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Li.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function _li(n::Integer, z::ComplexF64)::ComplexF64
l2 = abs2(log(z))
if 4*pi^2*abs2(z) < l2
li_series_naive(n, z)
elseif l2 < (0.512*2*pi)^2
elseif l2 < (512/1000*2*pi)^2
li_series_unity_neg(n, z)
else
sqrtz = sqrt(z)
Expand All @@ -144,9 +144,9 @@ function _li(n::Integer, z::ComplexF64)::ComplexF64
li5(z)
elseif n == 6
li6(z)
elseif abs2(z) <= 0.75^2
elseif abs2(z) <= (3/4)^2
li_series_naive(n, z)
elseif abs2(z) >= 1.4^2
elseif abs2(z) >= (7/5)^2
oddsgn(n, typeof(real(z)))*li_series_naive(n, inv(z)) + li_rem(n, z)
else
li_series_unity_pos(n, z)
Expand Down

0 comments on commit 2c495c2

Please sign in to comment.