I have an expression e1 and in e1 I would like to replace e2 (a sub-expression of e1) with e3 (a different expression). In Maple I use
applyrule([e2=e3,1/e2=1/e3],e1);
Is there a similar command in Sage?
1 | initial version |
I have an expression e1 and in e1 I would like to replace e2 (a sub-expression of e1) with e3 (a different expression). In Maple I use
applyrule([e2=e3,1/e2=1/e3],e1);
Is there a similar command in Sage?