Question: Consider the function f(x)=x3+10cos(3x) 1. Create anonymous functions for f, the true derivative, and the numerical derivatives found using the centered and Richards methods. 2.

 Consider the function f(x)=x3+10cos(3x) 1. Create anonymous functions for f, the

Consider the function f(x)=x3+10cos(3x) 1. Create anonymous functions for f, the true derivative, and the numerical derivatives found using the centered and Richards methods. 2. Using step sizes of (0.1)n, for n=1 to 4 , compute the true error (the numerical derivative - true derivative) at x0=1.3 using both methods. 3. Plot the true errors and step size vs step number, all on the same plot. 4. Create a plot like Figure 1 of the true derivative from x=0 to x=2. Try to add a horizontal line at the best value of the derivative and a vertical line at x=1.3. Hint: plot( linspace (1,5,20),7 ones (20,1) ) will plot a horizontal line from x=1 to x=5, at y=7. 5. Use fzero to find the 'true' value of the root with a starting value of x=1.3. 6. Use the Newton-Raphson iteration method to estimate the root with a desired TRUE error = your estimate the value above of

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!