From 33f847a43d63ed77a1a8a3b937cc65ec79c14e20 Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Wed, 6 Aug 2025 16:10:01 +0200 Subject: [PATCH] relax the doc string of `log2mexp` Breaking: prevent the doc string from promising the exact current implementation, to enable possible accuracy improvements in the future. Updates #102 --- src/basicfuns.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basicfuns.jl b/src/basicfuns.jl index 5cc0df2..5045194 100644 --- a/src/basicfuns.jl +++ b/src/basicfuns.jl @@ -247,7 +247,7 @@ end """ $(SIGNATURES) -Return `log(2 - exp(x))` evaluated as `log1p(-expm1(x))` +Return `log(2 - exp(x))` evaluated carefully. """ log2mexp(x::Real) = log1p(-expm1(x))