Previous Up Next

11.1.13  Polynomial evaluation with Horner algorithm

The horner command uses Horner’s method to evaluate polynomials.

Example

horner(x^2-2*x+1,2)

or:

horner([1,-2,1],2)
     
1           

Previous Up Next