Say I have some arbitrary symbolic expressions
syms x1 x2% x1*x2 == 1
a = x1*x2 + x1*x2;b = 2*a
If it is known that x1 * x2 == 1 is it possible to have matlab actively simplify based off of that relation so that b returns the answer 4 without the use of subs?
Best Answer