Skip to content

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

Open
@yakovbraver

Description

@yakovbraver

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions