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

Bessel function integration for zero argument #75

Open
jmsull opened this issue Nov 4, 2022 · 0 comments
Open

Bessel function integration for zero argument #75

jmsull opened this issue Nov 4, 2022 · 0 comments
Labels
question Further information is requested

Comments

@jmsull
Copy link
Collaborator

jmsull commented Nov 4, 2022

Not sure this will ever actually be an issue in practice, but right now the bessel function interpolator is constructed using a point at x =0 (were we have j_\ell(x)) when \eta = \eta_final.

At least for the polarization source function, there is a problem because j_2(x)/x^2 |x=0 is not zero, but the way the source function integration is done is by calling the bessel interpolator at x=0 and then multiplying it into the source function.

I caught a NaN in the source function for x=0, but the bessel interpolator returning j_2(0)=0 will still be wrong.

This might be solved by the new Bessel integration?

@jmsull jmsull added the question Further information is requested label Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant