Skip to content

Division of complex finite values by infinite complex values should always return zero #32992

@giordano

Description

@giordano

Currently

julia> complex(1.0) / (Inf + Inf*im)
NaN + NaN*im

but the result should be a complex 0. According to the comments, division between ComplexF64 is based on https://arxiv.org/abs/1210.4539, but I'm not sure how to fix the algorithm to deal with this.

This is related to #29840 (but that issue has been hidden by using inv in PR #32252). This is not a duplicate of #23134 as that issue was about the case where the numerator is real.

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexComplex numbers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions