From e1bb4724ad74ec38360fb1f5e64c12ab7d7b3097 Mon Sep 17 00:00:00 2001 From: Alexander Voigt Date: Wed, 4 Oct 2023 15:38:38 +0200 Subject: [PATCH] use log1p --- src/Li2.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Li2.jl b/src/Li2.jl index cb38652..8b087a4 100644 --- a/src/Li2.jl +++ b/src/Li2.jl @@ -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