Skip to content

Complex gamma function gives wildly incorrect results #1681

@wgxli

Description

@wgxli

Evaluating math.gamma(-4.242 + 0.0001i) gives a very, very, large number. However, the actual value of gamma(-4.242 + 0.0001i) is about -0.131...

This does not occur if math.gamma is called with a purely real number (-4.242). It needs a very small imaginary part.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions