symbolic expression substitution
s = Subs( e, r, b )
symbolic
Replaces in expression e a subexpression r by b and returns the modified expression s.
// create some expressions e = Sym("x*y*z"); x = Sym("x"); y = Sym("y"); z = Sym("z"); // first replace y by x in e e = Subs(e, y, x) // then replace z by x e = Subs(e, z, x)
SymEngine: C++ library for fast symbolic manipulation.