Skip to content

Complex Arithmetic Bug: Exponentiation #1538

@aerusso

Description

@aerusso

The following cython file should emit -1/32 twice (up to a zero imaginary component). My machine produces a nan+nanj for the second.

print((-0.5)**5,(-0.5+0j)**5)

This is present in the Debian packaging of Cython3 0.25.2. I have not tested mainline cython3.

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