Question: Write a Mat lab function called sine_Taylor that inputs a positive integer n, a number x, and outputs the nth Taylor polynomial of the sine

 Write a Mat lab function called sine_Taylor that inputs a positive

Write a Mat lab function called sine_Taylor that inputs a positive integer n, a number x, and outputs the nth Taylor polynomial of the sine function. (b) Compute the absolute and error for n =1: 10 at x = 1, obtained by comparing the output of your function to that of Mat lab's built in sine function. (c) Type on the Matlab console format long, then compute the previous error. Repeat the operation by typing format short. Comment on the result (quantify the difference). (d) Make three plots of the absolute error: loglog, semilogx, and semilogy. The axes should be properly labeled. If you make plots of the logarithms of the data you will not receive full credit

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!