Opened 8 years ago

Last modified 7 years ago

#15830 new defect

extracting coefficient x-1 out of symbolic series wrong

Reported by: dkrenn Owned by:
Priority: major Milestone: sage-6.4
Component: symbolics Keywords: symbolic, series, coefficient, wrong
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


sage: x.series(x==1,10).coefficient(x-1,0)

which is wrong. It should be 1, which can be seen by

sage: x.series(x==1,10)
1 + 1*(x - 1)

We also have wrong results here:

sage: x.series(x==1,10).coefficient(x-1,1)
sage: x.series(x==1,10).coefficient(x-1)

Change History (3)

comment:1 Changed 8 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:2 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:3 Changed 7 years ago by rws

Also coefficient can only deal with monomials:

sage: (x-1).coefficient(x-1)

Different ticket?

Note: See TracTickets for help on using tickets.