Skip to content

Degree of the zero polynomial #920

Description

@Antonio95

Calling degree on the zero (univariate) polynomial returns 0 (here). However, the usual mathematical convention is either -infinity (with the set of degrees = N U {-infty} forming an monoid) or "undefined". In particular, setting degree(0) = 0 violates degree(fg) = degree(f) + degree(g).

Making degree return an Option would be mathematically elegant, but also programmatically cumbersome - aside from a massive breaking change. Perhaps a better solution can be found? I understand this is pretty much a non-issue, but I felt compelled to bring it up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions