Question: MatLab code Question. The cube root of a number P, can be approximated using an iterative method. The process starts by choosing an initial estimate,

MatLab code Question.  MatLab code Question. The cube root of a number P, can

The cube root of a number P, can be approximated using an iterative method. The process starts by choosing an initial estimate, xi. Then, a second, more accurate value can be calculated as x22x1), which is then used to calculated a 3rd estimate and so on. The general equation for calculating the value of x+1 from x is: 3 1 ( P 13x Write a script which calculates the cubic root of a number. Use the general equation inside a While Loop to calculate a more accurate value each time through the loop. After each new calculation computethe relative eroStop loping when Ei mller error, E, defined a Like the previous homework 14, first test this for a single value of P. Then add an outer For Loop to run it for P-100, 53701 and 19.35. Display output like this using fprintf The cube root of 100.00 is 4.64 The cube root of 53701.00 is 37.73 The cube root of 19.35 is 2.68

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!