Here we evaluate the polynomial
. First, we define a vector of its coefficients in descending degree order.
c = [ 1 -3 3 -1];
Here is the evaluation of
.
horner(c,1.6)
ans =
2.1600e-01