Hello
I have an expression with x, y and x*y and powers of this numbers.
I want to replace :
x by E(x)
y by E(y)
x*y by E(x*y)
I have done this, but i think there is a more generic solution, because i must
dont the last evaluation for each power of E(x)*E(y).
(C26) expression:(x*y)^2+2*x-3*y+5;
(D26) x^2*y^2-3*y+2*x+5
(C27) expression1:subst(x=E(x),expression);
(D27) E(x)^2*y^2-3*y+2*E(x)+5
(C28) expression2:subst(y=E(y),expression1);
(D28) E(x)^2*E(y)^2-3*E(y)+2*E(x)+5
(C29) expression3:subst(E(x)^2*E(y)^2=E(xy)^2,expression2);
(D29) -3*E(y)+E(xy)^2+2*E(x)+5
Best regards