Question: One numerical method for calculating the cubic root of a number VX is by using iterations. The process starts by choosing a value x
One numerical method for calculating the cubic root of a number VX is by using iterations. The process starts by choosing a value x as a first estimate of the solution. Using this value, a second a more accurate value x2 can be calculated with x = (2+2x)/3, which is then used for calculating a third, and more accurate value X3, and so on. The general equation for calculating the value of X+1 from x; is X = (= 2 + 2x) / 3 X Xi+1 = Write an m-file which uses x = 100 as the first estimate to calculate the cube-root of 100 (x1 = the cube root of the number you're calculating). Stop the looping when the relative error with each iteration is smaller than 1e-5. I.e. E = = +1*. Determine the number of iterations required to achieve this criterion Xi and print out the value using fprintf. E.g. The number of iterations required is 16 and the cube root of 999 is 9.996666, using x=999.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
