Skip to content

Is Zero zero? #331

Closed
Closed
@projekter

Description

@projekter
Contributor

I just found out that curiously, iszero(Zero()) is not defined. Is this on purpose or just an oversight?
(Basically, this comes from @blegat's suggestion that imag on a real-valued AbstractVariable should return Zero - checking if an AbstractPolynomialLike has zero imaginary part therefore breaks if it is a variable.)

Activity

blegat

blegat commented on Mar 28, 2025

@blegat
Member

We didn't eagerly define all methods we could find, we're just waiting for use cases in order to define methods for Zero. This looks like a reasonable use case so PR welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @blegat@projekter

      Issue actions

        Is Zero zero? · Issue #331 · jump-dev/MutableArithmetics.jl