Bessels.jl icon indicating copy to clipboard operation
Bessels.jl copied to clipboard

Large argument inaccuracy for Float32 in besselj0

Open heltonmc opened this issue 1 year ago • 0 comments

julia> Bessels.besselj0(328049.34f0)
-0.0013240778f0

julia> Bessels.besselj0(Float64(328049.34f0))
-0.0013258623831875669

I'm imagining the better sin sum here could help.

Originally posted by @heltonmc in https://github.com/JuliaMath/Bessels.jl/pull/88#discussion_r1162007124

The fix should be with the better sin_sum PR. Need to test further.

heltonmc avatar Apr 11 '23 14:04 heltonmc