Opened 9 years ago
Closed 8 years ago
#12931 closed defect (duplicate)
evaluation of coefficients of polynomials
Reported by: | chapoton | Owned by: | AlexGhitza |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | algebra | Keywords: | polynomials |
Cc: | Merged in: | ||
Authors: | Reviewers: | Travis Scrimshaw | |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
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.
Change History (6)
comment:1 Changed 9 years ago by
- Description modified (diff)
comment:2 follow-up: ↓ 3 Changed 9 years ago by
comment:3 in reply to: ↑ 2 Changed 9 years ago by
comment:4 Changed 8 years ago by
- Milestone changed from sage-5.4 to sage-duplicate/invalid/wontfix
- Status changed from new to needs_review
comment:5 Changed 8 years ago by
- Reviewers set to Travis Scrimshaw
- Status changed from needs_review to positive_review
comment:6 Changed 8 years ago by
- Description modified (diff)
- Resolution set to duplicate
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
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.