Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Degree of the zero polynomial #920

Open
Antonio95 opened this issue Jan 17, 2025 · 0 comments
Open

Degree of the zero polynomial #920

Antonio95 opened this issue Jan 17, 2025 · 0 comments

Comments

@Antonio95
Copy link
Contributor

Antonio95 commented Jan 17, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant