Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/basicfuns.jl
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,11 @@ function _log1pmx_ker(x::T) where T <: Union{Float32, Float64}
0.11201972567415432,
0.143418239946679)
end
# Mathematically equivalent to:
#
# ```julia
# w = 2 * (atanh(r) - r) / r^3
# ```
w = evalpoly(t, p)
hxsq = x*x/2
muladd(r, muladd(w, t, hxsq), -hxsq)
Expand Down