From 3c46aaafcd34908ce2cdc646c8612fd5a2db5f28 Mon Sep 17 00:00:00 2001 From: Alexander Voigt Date: Tue, 19 Sep 2023 21:17:51 +0200 Subject: [PATCH] use iszero helper function --- src/Li.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Li.jl b/src/Li.jl index 92afb8a..4cdb0b2 100644 --- a/src/Li.jl +++ b/src/Li.jl @@ -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