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?
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.