Products & Services Solutions Academia Support User Community Company

Learn more about Symbolic Math Toolbox   

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 = 100.

Examples

Simplify the trigonometric expression:

syms x;
simplify(sin(x)^2 + cos(x)^2)

The result is:

ans =
1

Simplify the expression:

syms a b c;
simplify(exp(c*log(sqrt(a+b))))

The result is:

ans =
(a + b)^(c/2)

Simplify the expressions from the list:

S = [(x^2 + 5*x + 6)/(x + 2), sqrt(16)];
R = simplify(S)

The result is:

R =
[ x + 3, 4]

See Also

collect, expand, factor, horner, simple

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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