Opened 5 years ago
Last modified 6 weeks ago
#24013 new enhancement
missing method terms for InfinitePolynomialRing
Reported by: | zimmerma | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | algebra | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
to iterate over the terms of a polynomial from InfinitePolynomialRing?, a method p.terms()
is missing. Indeed, the method monomials
does not include the coefficients:
sage: R.<x> = InfinitePolynomialRing(ZZ) sage: p = x[0]+2*x[2]*x[3] sage: p.monomials() [x_3*x_2, x_0]
The method p.terms()
would return [2*x_3*x_2, x_0]
.
Note: See
TracTickets for help on using
tickets.