Question: Write a MATLAB script for computing the cube root of a number, x = cube root a with only basic arithmetic operations using Newton's method,

Write a MATLAB script for computing the cube root of a number, x = cube root a with only basic arithmetic operations using Newton's method, by finding a root of the function f(x) = x^3-a a. Run your program for a = 0,2,10. For each of these cases, start with an initial guess reasonably close to the solution. As a stopping criterion, require the function value whose root you are searching to he smaller than 10^-8. Print out the values of xk and f(xk) in each iteration. Comment on the convergence rates and explain how they match your expectations.

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!