Skip to content

asinh returns incorrect results at complex infinities #749

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions