Products & Services Solutions Academia Support User Community Company

Learn more about Symbolic Math Toolbox   

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

Find nested polynomial representation of the polynomial:

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

The result is

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

Find nested polynomial representation for the polynomials that form a vector:

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

The result is:

ans =
   x*(x + 1)
 y*(y^2 - 2)

See Also

expand, factor, simple, simplify, syms

  


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