First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2 years ago

Max Alekseyev gravatar image

For .coefficient() method to work correctly the expression needs to be expanded first:

WW23(ggg,1,7).expand().coefficient(p1,1).coefficient(q1,1)

However, in the given context I'd rather recommend to use PolynomialRing and/or PowerSeriesRing rather symbolic ring.

click to hide/show revision 2
No.2 Revision

For .coefficient() method to work correctly the a symbolic expression needs to be expanded first:

WW23(ggg,1,7).expand().coefficient(p1,1).coefficient(q1,1)

However, in the given context I'd rather recommend to use PolynomialRing and/or PowerSeriesRing rather than symbolic ring.