Symbolic Math Toolbox
 Go to function:
  Search    Help Desk 
expand ExamplesSee Also

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(log(a*b/sqrt(c))) returns

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

See Also

collect, factor, horner, simple, simplify, syms



[ Previous | Help Desk | Next ]