Skip to content

lgamma() fails for large negative imaginary arguments #18292

@hsgg

Description

@hsgg

The lgamma() function in julia-0.4.6 has trouble with large negative imaginary arguments, e.g.

julia> lgamma(-300im)
-Inf + NaN*im

scipy.special.gammaln() gives a more reasonable answer:

>>> import scipy.special
>>> scipy.special.gammaln(-300.0j)
(-473.17185074259248-1410.3490664555823j)

Metadata

Metadata

Assignees

No one assigned

    Labels

    mathsMathematical functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions