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:

Status badges

Description (last modified by jdemeyer)

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 chapoton

  • Description modified (diff)

comment:2 follow-up: Changed 9 years ago by fwclarke

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.

comment:3 in reply to: ↑ 2 Changed 9 years ago by fwclarke

Replying to fwclarke:

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

It has been now.

comment:4 Changed 8 years ago by chapoton

  • 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 tscrim

  • Reviewers set to Travis Scrimshaw
  • Status changed from needs_review to positive_review

comment:6 Changed 8 years ago by jdemeyer

  • Description modified (diff)
  • Resolution set to duplicate
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.