Skip to content

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

@dkrenn

Description

@dkrenn
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions