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

evaluation of coefficients of polynomials #12931

Closed
fchapoton opened this issue May 9, 2012 · 5 comments
Closed

evaluation of coefficients of polynomials #12931

fchapoton opened this issue May 9, 2012 · 5 comments

Comments

@fchapoton
Copy link
Contributor

It seems that substitution inside coefficients of a polynomial forgets to change the dominant term :

sage: rng=PolynomialRing(QQ,'q')
sage: q=rng.gen()
sage: x=PolynomialRing(rng,'x').gen()
sage: po=q+(1+q)*x+(1+q+q**2)*x**2+(2+q)*x**3
sage: po(q=1)
(q + 2)*x^3 + 3*x^2 + 2*x + 1

Same behaviour in 4.8 and 5.0rc0

Fixed by #3979.

Component: algebra

Keywords: polynomials

Reviewer: Travis Scrimshaw

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

@fchapoton fchapoton added this to the sage-5.4 milestone May 9, 2012
@fchapoton

This comment has been minimized.

@sagetrac-fwclarke
Copy link
Mannequin

sagetrac-fwclarke mannequin commented May 10, 2012

comment:2

This is corrected in the latest patch for #3979; see the changes to sage/rings/polynomial/polynomial_element.pyx. A new patch which should allow that ticket to be closed will be posted soon.

@sagetrac-fwclarke
Copy link
Mannequin

sagetrac-fwclarke mannequin commented May 13, 2012

comment:3

Replying to @sagetrac-fwclarke:

A new patch [...] will be posted soon.

It has been now.

@fchapoton fchapoton removed this from the sage-5.4 milestone Nov 14, 2012
@tscrim
Copy link
Collaborator

tscrim commented Nov 17, 2012

Reviewer: Travis Scrimshaw

@jdemeyer

This comment has been minimized.

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

4 participants