I recently had to implement some Bessel functions numerically. It's fantastic to see that someone at Sun Microsystems implemented all this procedures in the early 90's (I'm sure even long before that). You will find this implementations in R, Julia, musl, you name it!
I like it specially the use the "GET_HIGH_WORD" and friends:
yeah, Fredrik's papers are great. A lot of the reason Bessels.jl is so good is because ARB makes it easy for us to have test against a known source of truth (which make things like minimax polynomials and picking optimal tradeoffs a ton easier).
I like it specially the use the "GET_HIGH_WORD" and friends:
https://git.musl-libc.org/cgit/musl/tree/src/math/j0.c
It's a lot of fun to figure out what they meant by things like:
> if (ix >= 0x7ff00000) return 1/(x*x);