| Symbolic Math Toolbox | Search  Help Desk |
| horner | Examples See Also |
Horner polynomial representation.
Syntax
R = horner(P)
Description
SupposeP 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