Skip to content

asinh returns incorrect results at complex infinities #749

@pearu

Description

@pearu

As in the title.

Reproducer (using mpmath 1.3.0):

>>> mpmath.asinh(mpmath.mpc(mpmath.inf, 0))
mpc(real='0.0', imag='0.0')

Expected result is mpc(real='+inf', imag='0.0') as in

>>> mpmath.asinh(mpmath.inf)
mpf('+inf')

Another reproducer:

>>> mpmath.asinh(mpmath.mpc(mpmath.inf, 1))
mpc(real='0.0', imag='0.0')

Expected result is mpc(real='+inf', imag='0.0') per https://en.cppreference.com/w/cpp/numeric/complex/asinh

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions