Skip to content

Commit

Permalink
Update src/basicfuns.jl
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <[email protected]>
  • Loading branch information
oscardssmith and devmotion authored Nov 16, 2024
1 parent 3364d20 commit 0b6d9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basicfuns.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

"""
Expand Down

0 comments on commit 0b6d9f9

Please sign in to comment.