Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started