From 024d89aa2365bf8e61eab9ace32a812b24eeeb8f Mon Sep 17 00:00:00 2001 From: Alexander Voigt Date: Tue, 19 Sep 2023 21:33:00 +0200 Subject: [PATCH] use more generic real type --- src/Li.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Li.jl b/src/Li.jl index 066485e..02d14e1 100644 --- a/src/Li.jl +++ b/src/Li.jl @@ -183,7 +183,7 @@ end # # Li(n,-x) + (-1)^n Li(n,-1/x) # = -log(n,x)^n/n! + 2 sum(r=1:(nĂ·2), log(x)^(n-2r)/(n-2r)! Li(2r,-1)) -function reli_rem(n::Integer, x::Float64)::Float64 +function reli_rem(n::Integer, x::Real) l = log(-x) l2 = l*l sum = zero(x)