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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!