On 25/06/2017 16:51, baliza Eyo wrote:
> Dear Sage developers,
>
> Here is a quick question about the output of the .coefficient() for an SR
> object.
> having set up the variables as follows
>
> sage: var('x,y')
> (x, y)
>
> Shouldn't the output of the following commands be the same:
>
> sage: ((x^2 - 2)^2 - y^2).coefficient(x^4)
> 0
> sage: expand(((x^2 - 2)^2 - y^2)).coefficient(x^4)
> 1
> sage: ((x^2 - 2)^2 - y^2).diff(x,4).subs(x==0)/factorial(4)
> 1
>
> The last two outputs are correct but why is 0 the intended output for
> ((x^2 - 2)^2 - y^2).coefficient(x^4) ?