Home / Expert Answers / Advanced Math / in-this-problem-we-approximate-f-x-cos-x-using-taylor-series-a-how-many-terms-in-the-taylor-s-pa221

(Solved): In this problem, we approximate f(x)=cos(x) using Taylor series. (a) How many terms in the Taylor s ...



student submitted image, transcription available belowstudent submitted image, transcription available below
In this problem, we approximate using Taylor series. (a) How many terms in the Taylor series approximation to do I need to make sure that my error is less than for ? Use the Taylor approximation error of to derive your answer, or another another theorem from calculus. If you expand around , then the Taylor series will have some zero terms. You should count these terms towards the in your answer. (b) Write a function called my_cos which takes in two arguments: a number and a positive integer . Your function should approximate using a Taylor series approximation of order . The function should return the approximate value. c) Now we experimentally verify the bound from part (a) in Matlab using your function from part (b). Define a vector of 100 equally spaced points between . For each of these points, compute the error, , using two different values of : - - Value of that you compute in part (a) Plot the errors (I recommend a logarithmic vertical axis) for both these values of against the vector . Is your error below the bound in part (a) at all these points for the two values of ?


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe