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:

GitHub link to the corresponding issue

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].

Change History (1)

comment:1 Changed 6 weeks ago by mkoeppe

Milestone: sage-8.1
Note: See TracTickets for help on using tickets.