Skip to content

beta(-n,n) should return ±1/n, not NaN #14256

@stevengj

Description

@stevengj

In #14165, @CarloLucibello noticed a bug in our beta function: beta(-n,n) is returning NaN for integers n, whereas the correct answer is (-1)^n / n, I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviormathsMathematical functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions