Skip to content

mpc() constructor should be compatible with complex() #730

@skirpichev

Description

@skirpichev

Instead, now if the real argument is a complex number - the second (imag) argument just ignored:

>>> complex(real:=3+1j, imag:=7-1j)
(4+8j)
>>> real + imag*1j
(4+8j)
>>> mpmath.mpc(real, imag)
mpc(real='3.0', imag='1.0')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions