Question: Task: Describe an algorithm on paper using pseudocode, that you can employ the Horner's algorithm idea to efficiently calculate the Taylor polynomial ( coefficients )

Task:
Describe an algorithm on "paper" using pseudocode, that you can employ the Horner's algorithm
idea to efficiently calculate the Taylor polynomial (coefficients) of degree mn of the given
polynomial p(x) centered around any point x00. Specifically, you need to determine the
coefficients ck=p(k)(x0)k! for k=0,1,dots,m.(you may choose to follow the hint below)
Briefly explain why this algorithm will also work if x0=1.73x0p(x0)p(x0)p(x)(x-x0)(x-x0)q(x)(x-x0)q(x)=p(x)-p(x0)q(x0)m.
Write the Matlab code to efficiently implement this algorithm
Choose the polynomials from problem 3 and 4 and calculate the Taylor polynomial of the same
degree centered atx0=1.73 using your code. Verify your code by comparing the values of the
original polynomial and its Taylor polynomial at several points.
Test also your code by computing the values at those same points as the previous bullet, of the
computed one-degree-less Taylor polynomials, around the same x0.
Hint:
Start by evaluating p(x0). What does it give you?
Conceptually subtract p(x0) from p(x)to form a new polynomial, and recognize that it has (x-x0)
as a factor. Use an idea similar to Horner's method to factor out (x-x0) iteratively, forming a
polynomial q(x) such that (x-x0)q(x)=p(x)-p(x0).
Efficiently evaluate just the q(x0) what does it give you now? Repeat this process.
Task: Describe an algorithm on "paper" using

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 Programming Questions!