Algebraic simplification - MATLAB simplify
www.mathworks.com › help › symbolicBy default, simplify uses one internal simplification step. You can get different, often shorter, simplification results by increasing the number of simplification steps: S10 = simplify (expr, 'Steps' ,10) S10 = 2 i e 2 x i + 1 - i S30 = simplify (expr, 'Steps' ,30) S30 = cos ( x) - sin ( x) i i cos ( x) - i S50 = simplify (expr, 'Steps' ,50)
Simplify Symbolic Expressions - MATLAB & Simulink
www.mathworks.com › help › symbolicYou also can simplify symbolic functions by using simplify. syms f (x,y) f (x,y) = exp (x)*exp (y) f = simplify (f) f (x, y) = exp (x)*exp (y) f (x, y) = exp (x + y) Simplify Using Options By default, simplify uses strict simplification rules and ensures that simplified expressions are always mathematically equivalent to initial expressions.