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

besselj(n, x) returns NaN when x is negative and n is a large negative integer #113

Open
yakovbraver opened this issue May 1, 2024 · 0 comments

Comments

@yakovbraver
Copy link

Consider calling besselj(n, x) where x is negative, while n is a large negative integer:

julia> Bessels.besselj(-172, -2.0)
NaN

julia> Bessels.besselj(-37, -2.0f0)
NaN32

When at least one argument is positive, there is no problem:

julia> Bessels.besselj(172, -2.0)
4.657823561745e-312

julia> Bessels.besselj(-37, 2.0f0)
-7.1f-44
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

1 participant