LaurentPolynomialRing
define the zero polynomial to have degree -1
which is ambiguous
#37491
Closed
2 tasks done
Labels
Steps To Reproduce
Expected Behavior
The degree of
0
should be distinct from polynomials we can constructActual Behavior
The degree of
0
is-1
, the same as1/x0
or other similar polynomials.Additional Information
For standard univariate and multivariate polynomial rings, the degree being$-\infty$ , but for Laurent polynomial rings where negative degree makes total sense, this ambiguity with zero is confusing.
-1
is essentially a nice trick in place ofOne idea would be to instead have it return
- infinity
.Environment
Checklist
The text was updated successfully, but these errors were encountered: