Method on @sym: expand (f)

Combine parts of a symbolic product.

Example:

syms x
expand ((x+1)*(x+5))
  ⇒ (sym)
       2
      x  + 6⋅x + 5

See also: @sym/factor.

Package: symbolic