Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from SpecialFunctions.jl to Bessels.jl #134

Open
oscardssmith opened this issue Nov 19, 2024 · 3 comments
Open

Switch from SpecialFunctions.jl to Bessels.jl #134

oscardssmith opened this issue Nov 19, 2024 · 3 comments

Comments

@oscardssmith
Copy link

Bessels.jl is a lot faster for computing besselj (and has special methods for besselj0 and besselj1 that are incredibly fast).

@dlfivefifty
Copy link
Member

Are computing bessel functions a serious contributor to computational cost?

Though I guess a benefit is that Bessels.jl is pure Julia

@oscardssmith
Copy link
Author

I thought I saw a bunch being computed skimming through the source at

Ja = besselj.(α, rho*t)
, but on closer inspection it appears that this was just broadcasting over 2 scalars, so it's hardly critical.

@dlfivefifty
Copy link
Member

If I recall correctly they need to be computed close to ±1 (where uniform asymptotics are used). But the window where one needs to use uniform asymptotics becomes smaller, and so the number of points requiring uniform asymptotics should grow slower.

(But perhaps I misunderstand)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants