| 1 | initial version |
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) )
| 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) )
| 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) )
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.