Question: 1. One numerical method for calculating by hand the cube root of some number N involves an extension of an algorithm developed by Babylonian

1. One numerical method for calculating "by hand" the cube root of some number N involves an extension of an algorithm developed by Babylonian mathematicians over 4000 years ago for calculating the square root of any number. It is an iterative procedure defined by the recurrence relation: 2 x+1= N 2 =3x+3x = x1 Write a MATLAB script that implements this algorithm to calculate the cube root of any number N. Use x = N for the initial estimate to get your iterative loop started. Use a while loop to have your iterations stop when the estimated relative error E is less than 1.0 x 102, where E 1. Use fprintf to print "The cube root of N is approximately X". Have fprintf print the number assigned to the variable N in integer format and the number assigned to the variable X as a real number with 4 digits to the right of the decimal point. Use your script to estimate V6578934.
Step by Step Solution
3.50 Rating (160 Votes )
There are 3 Steps involved in it
Here is a MATLAB script that implements the algorithm to calculate the cube root of a number N matl... View full answer
Get step-by-step solutions from verified subject matter experts
