JuliaMath / JuliaMath/Bessels.jl
Large argument inaccuracy for Float32 in besselj0
- Dominant language
- Julia
- Stars
- 90
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
```julia
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Float32 and Float64 besselj0 results shown in the issue, then inspect the besselj0 calculation and the proposed better sin_sum PR. Test further inputs with large Float32 arguments and consider the issue done when the reported accuracy inaccuracy is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100