Question: Write a MATLAB function of the form function p = Horner(z,A) that uses Horners method to evaluate the polynomial p(x)=anxn +an1xn1 +...a1x+a0 at a point
Write a MATLAB function of the form function p = Horner(z,A) that uses Horners method to evaluate the polynomial p(x)=anxn +an1xn1 +...a1x+a0 at a point z with A = [a0,a1,a2,...,an1,an].
1. Define bn = an.
2. Define bi1 = ai1 + zbi for i = n, n 1, . . . , 1.
3. Output b0.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
