Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Here is a quick hack.

q=ex1.operands()
map(lambda w: w.subs(x=1,y=1,z=1),q)

I don't see an obvious command to extract abstract coefficients, even list doesn't work.

Here is a quick hack.

q=ex1.operands()
map(lambda w: w.subs(x=1,y=1,z=1),q)
w.subs(x=1,y=1,z=1),ex.operands())

I don't see an obvious command to extract abstract coefficients, even list doesn't work.