Changes between Version 4 and Version 6 of Ticket #17400


Ignore:
Timestamp:
01/22/15 15:16:13 (7 years ago)
Author:
rws
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17400 – Description

    v4 v6  
    1111
    1212Originally found in http://ask.sagemath.org/question/24968/coefficients-in-polynomial-ring-over-symbolic-ring/
     13
     14Also, `series` should simplify its terms on a per-term basis:
     15{{{
     16sage: var('x,y')
     17(x, y)
     18sage: ex=1/(1-x*y-x^2)
     19sage: ex.series(x,5)
     201 + (y)*x + (y^2 + 1)*x^2 + ((y^2 + 1)*y + y)*x^3 + (((y^2 + 1)*y + y)*y + y^2 + 1)*x^4 + Order(x^5)
     21}}}
     22Compare with e.g. Pari:
     23{{{
     24? 1/(1-x*y-x^2) + O(x^5)
     25%1 = 1 + y*x + (y^2 + 1)*x^2 + (y^3 + 2*y)*x^3 + (y^4 + 3*y^2 + 1)*x^4 + O(x^5)
     26}}}
     27Both issues can be fixed by writing series simplification methods.