Question: ( Please explain both A and B ) I think A is not coding and B is . Question 1 . Taylor Polynomials Engineers and
Please explain both A and B I think A is not coding and B is Question Taylor Polynomials Engineers and physicists frequently use the approximation sinx x for x small, which is a firstorder Taylor polynomial approximation for sinx centered at x In this exercise we will use Taylors theorem to create a simple MATLAB function capable of telling us what degree of Taylor polynomial approximation is needed to obtain a desired level of accuracy on a specified interval. a Let Pnx be the degree n Taylor Polynomial for fx sinx about x Find n so that Pnx is within of sinx for all x in 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 thorder Taylor Polynomial for fx sinkx about x is within err of sinkx for all x in delta delta Call your function with suitable input values to reproduce your answer to question a HINT: Your code does not need to be complicated! By mimicking your theoretical analysis from 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 classQuestion Taylor Polynomials
Engineers and physicists frequently use the approximation ~~ for small, which is a firstorder Taylor
polynomial approximation for centered at In this exercise we will use Taylor's theorem to create a
simple MATLAB function capable of telling us what degree of Taylor polynomial approximation is needed to obtain
a desired level of accuracy on a specified interval.
a Let be the degree Taylor Polynomial for about Find so that is within
of for all xin
b Create a MATLAB function that takes as input a positive parameter an interval radius call something
like delta in MATLAB and a desired error threshold err, and returns a value for which you can prove that
the order Taylor Polynomial for about is within err of for all xin Call
your function with suitable input values to reproduce your answer to question a
HINT: Your code does not need to be complicated! By mimicking your theoretical analysis from a you
should only "need" MATLAB at the very end of this problem, where you can write some code to find the first
satisfying a certain inequality, rather than looking for it by hand as we did in class
dddddestion Taylor Polynomials Engineers and physicists frequently use the approximation sinx x for x small, which is a firstorder Taylor polynomial approximation for sinx centered at x In this exercise we will use Taylors theorem to create a simple MATLAB function capable of telling us what degree of Taylor polynomial approximation is needed to obtain a desired level of accuracy on a specified interval. a Let Pnx be the degree n Taylor Polynomial for fx sinx about x Find n so that Pnx is within of sinx for all x in 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 thorder Taylor Polynomial for fx sinkx about x is within err of sinkx for all x in delta delta Call your function with suitable input values to reproduce your answer to question a HINT: Your code does not need to be complicated! By mimicking your theoretical analysis from 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 classQuestion Taylor Polynomials
Engineers and physicists frequently use the approximation ~~ for small, which is a firstorder Taylor
polynomial approximation for centered at In this exercise we will use Taylor's theorem to create a
simple MATLAB function capable of telling us what degree of Taylor polynomial approximation is needed to obtain
a desired level of accuracy on a specified interval.
a Let be the degree Taylor Polynomial for about Find so that is within
of for all xin
b Create a MATLAB function that takes as input a positive parameter an interval radius call something
like delta in MATLAB and a desired error threshold err, and returns a value for which you can prove that
the order Taylor Polynomial for about is within err of for all xin Call
your function with suitable input values to reproduce your answer to question a
HINT: Your code does not need to be complicated! By mimicking your theoretical analysis from a you
should only "need" MATLAB at the very end of this problem, where you can write some code to find the first
satisfying a certain inequality, rather than looking for it by hand as we did in class
ddddd
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
