Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 1 year ago

Max Alekseyev gravatar image

You can perform such substitution by explicitly going over the coefficients of x and y:

sum( cy*x^(dx-min(dx,dy))*y^(dy-min(dx,dy))*w^min(dx,dy) for cx,dx in P.coefficients(x) for cy,dy in cx.coefficients(y) )
click to hide/show revision 2
No.2 Revision

You can perform such substitution by explicitly going over the coefficients of powers of x and y:

sum( cy*x^(dx-min(dx,dy))*y^(dy-min(dx,dy))*w^min(dx,dy) for cx,dx in P.coefficients(x) for cy,dy in cx.coefficients(y) )
click to hide/show revision 3
No.3 Revision

You In symbolic ring, you can perform such substitution by explicitly going over the coefficients of powers of x and y:

sum( cy*x^(dx-min(dx,dy))*y^(dy-min(dx,dy))*w^min(dx,dy) for cx,dx in P.coefficients(x) for cy,dy in cx.coefficients(y) )