| Symbolic Math Toolbox™ | ![]() |
R = simplify(S)
R = simplify(S, n)
R = simplify(S) simplifies each element of the symbolic matrix S using MuPAD simplification rules.
R = simplify(S, n) uses the positive integer n to control how many steps of simplification the simplify function attempts. The default value (without n) is n = 50.
syms x a b c; simplify(sin(x)^2 + cos(x)^2) returns
1
simplify(exp(c*log(sqrt(a+b)))) returns
(a + b)^(c/2)
The statements
S = [(x^2+5*x+6)/(x+2),sqrt(16)]; R = simplify(S)
return
[ x + 3, 4]
collect, expand, factor, horner, simple
![]() | simple | single | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |