Algebraic simplification - MATLAB simplify
https://www.mathworks.com/help/symbolic/simplify.htmlThis MATLAB function performs algebraic simplification of expr. In most cases, to simplify a symbolic expression using Symbolic Math Toolbox™, you only need to use the simplify function. But for some large and complex expressions, you can obtain a faster and simpler result by using the expand function before applying simplify.. For instance, this workflow gives better results …
Simplify Symbolic Expressions - MATLAB & Simulink
www.mathworks.com › help › symbolicsimplify (cos (x)^ (-2) - tan (x)^2) simplify (cos (x)^2 - sin (x)^2) ans = 1 ans = cos (2*x) Simplify expressions involving exponents and logarithms. In the third expression, use log (sym (3)) instead of log (3) . If you use log (3), then MATLAB ® calculates log (3) with the double precision, and then converts the result to a symbolic number.
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)