Skip to content

Commit

Permalink
use iszero helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
Expander committed Sep 19, 2023
1 parent 01a5eea commit 3c46aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Li.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function li_rem(n::Integer, z::Complex{T})::Complex{T} where T

for k in kmax:-1:1
ifac = inv_fac(n - 2*k)
ifac == zero(T) && return 2*sum
iszero(ifac) && return 2*sum
old_sum = sum
sum += neg_eta(2*k)*ifac*p
p *= l2
Expand Down

0 comments on commit 3c46aaa

Please sign in to comment.