Question: I need MatLab Code. Show full code and result. Will thunbs up . One numerical method for calculating the cubic root of a number, P

I need MatLab Code. Show full code and result. Will thunbs up.
One numerical method for calculating the cubic root of a number, P3 is in iterations. The process starts by choosing a value x1 as a first estimate of the solution. Using this value, a second, more accurate value x2 can be calculated with x2=Px12+2x13, which is then used for calculating a third, still more accurate value x3, and so on. The general equation for calculating the value of xi+1 from the value of xi is xi+1=Pxi2+2xi3. Write a MATLAB program that calculates the cubic root of a number. In the program use x1=P for the first estimate of the solution. Then, by using the general equation in a loop, calculate new, more accurate values. Stop the looping when the estimated relative error E defined by E=|xi+1-xixi| is smaller than 0.00001. Use the program to calculate:
(a)1003
(b)537013
(c)19.353
I need MatLab Code. Show full code and result.

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 Programming Questions!