Symbolic Math Toolbox    
expand

Symbolic expansion

Syntax

Description

expand(S) writes each element of a symbolic expression S as a product of its factors. expand is most often used only with polynomials, but also expands trigonometric, exponential, and logarithmic functions.

Examples

expand((x-2)*(x-4)) returns

expand(cos(x+y)) returns

expand(exp((a+b)^2)) returns

expand([sin(2*t), cos(2*t)]) returns

See Also

collect, factor, horner, simple, simplify, syms


  expm ezcontour 

Learn more about the latest releases of MathWorks products:

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