simplify - Symbolic simplification

Syntax

R = simplify(S)
R = simplify(S, n)

Description

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.

Examples

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]

See Also

collect, expand, factor, horner, simple

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS