horner - Horner nested polynomial representation

Syntax

horner(P)

Description

Suppose P is a matrix of symbolic polynomials. horner(P) transforms each element of P into its Horner, or nested, representation.

Examples

horner(x^3-6*x^2+11*x-6) returns

-6+(11+(-6+x)*x)*x

horner([x^2+x;y^3-2*y]) returns

[   (1+x)*x]
[(-2+y^2)*y]

See Also

expand, factor, simple, simplify, syms

  


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