From 0b6d9f9c11a47f6aebce1188f5642bf819c679b5 Mon Sep 17 00:00:00 2001 From: Oscar Smith Date: Sat, 16 Nov 2024 10:24:57 -0500 Subject: [PATCH] Update src/basicfuns.jl Co-authored-by: David Widmann --- src/basicfuns.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basicfuns.jl b/src/basicfuns.jl index 9c5bf34..e2828f1 100644 --- a/src/basicfuns.jl +++ b/src/basicfuns.jl @@ -168,7 +168,7 @@ function logabstanh(x::Float64) if abs_x < 0x1p-5 return log(abs_x) + evalpoly(x*x, (0, -1/3, 7/90, -62/2835)) end - return log1p(-2/((exp(2abs_x)+1))) + return log1p(-2/(exp(2*abs_x)+1)) end """