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

extracting coefficient x-1 out of symbolic series wrong #15830

Open
dkrenn opened this issue Feb 18, 2014 · 1 comment
Open

extracting coefficient x-1 out of symbolic series wrong #15830

dkrenn opened this issue Feb 18, 2014 · 1 comment

Comments

@dkrenn
Copy link
Contributor

dkrenn commented Feb 18, 2014

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

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)
0
sage: x.series(x==1,10).coefficient(x-1)
0

Component: symbolics

Keywords: symbolic, series, coefficient, wrong

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

@dkrenn dkrenn added this to the sage-6.2 milestone Feb 18, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@rwst
Copy link

rwst commented Dec 25, 2014

comment:3

Also coefficient can only deal with monomials:

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

Different ticket?

@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
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

3 participants