<< Sub SYMSCI Toolbox Sym >>

SYMSCI Toolbox >> SYMSCI Toolbox > Subs

Subs

symbolic expression substitution

Calling Sequence

s = Subs( e, r, b )

Arguments

s, e, r, ,b

symbolic

Description

Replaces in expression e a subexpression r by b and returns the modified expression s.

Examples

// 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)

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< Sub SYMSCI Toolbox Sym >>