Question: A method to compute a cubic root, 3 , > 0 , is + 1 = ( + 2 1 + 1 2 ) /
A method to compute a cubic root, is n with and That is it is known that lim Write a function cranitr myCubeRoota which implements this calculation. The function should use a whileloop, terminate when the difference between and becomes smaller than epsa and output in cra and the value of n at which the whileloop was terminated in nitr. The function should use as little memory as possible. For example, it should not store all the values of in a vector. Use your function to compute the cube root of a and a prodmyvec:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
