Skip to content

math: minor error in Bessel function documentation #18823

@IsaacDunlap

Description

@IsaacDunlap

Just spotted a typo in jn.go, in the documentation for the function Yn (https://golang.org/pkg/math/#Yn)).

Currently, we have a typo where Y1 is written instead of Yn:

Y1(n, x < 0) = NaN
Y1(n, NaN) = NaN

The documentation should say:
Yn(n, x < 0) = NaN
Yn(n, NaN) = NaN

Also, the current documentation for Yn doesn't include the special case Yn(0, 0) = -Inf, which should be included for completeness I'd imagine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions