Question: Let Pn ( x ) be the degree n Taylor Polynomial for f ( x ) = sin ( x ) about x = 0

Let Pn(x) be the degree n Taylor Polynomial for f(x)= sin(x) about x =0. Find n so that Pn(x) is within
104 of sin(x) for all x in [1,1].
(b) Create a MATLAB function that takes as input a positive parameter k, an interval radius \delta (call \delta something
like delta in MATLAB), and a desired error threshold err, and returns a value n for which you can prove that
the n
th-order Taylor Polynomial for f(x)= sin(kx) about x =0 is within err of sin(kx) for all x in [\delta ,\delta ]. Call
your function with suitable input values to reproduce your answer to question 1(a).
HINT: Your code does not need to be complicated! By mimicking your theoretical analysis from 1(a), you
should only need MATLAB at the very end of this problem, where you can write some code to find the first
n satisfying a certain inequality, rather than looking for it by hand (as we did in class).

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!