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

Add .coefficients() and .exponents() to univariate polynomials and power series #2081

Closed
jbandlow opened this issue Feb 7, 2008 · 4 comments

Comments

@jbandlow
Copy link

jbandlow commented Feb 7, 2008

This should work:

sage: R.<x> = QQ[]
sage: f = x^2+2*x
sage: f.exponents()
[1, 2]
sage: f.coefficients()
[2, 1]

Component: basic arithmetic

Issue created by migration from https://trac.sagemath.org/ticket/2081

@jbandlow jbandlow added this to the sage-2.10.2 milestone Feb 7, 2008
@mwhansen mwhansen self-assigned this Feb 7, 2008
@malb
Copy link
Member

malb commented Feb 14, 2008

comment:2

The patch looks good, one thing though: every parent is supposed to provide a zero_element() method, this could be used (but that isn't really important)

@mwhansen
Copy link
Contributor

comment:3

Attachment: 2081.patch.gz

Updated patch to use .zero_element()

@malb
Copy link
Member

malb commented Feb 15, 2008

comment:4

make test passes, patch looks good, apply!

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Feb 15, 2008

comment:5

Merged in Sage 2.10.2.alpha0

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

No branches or pull requests

3 participants