Question: Look again at the Newton-Raphson method which can be used to numerically approximate cube roots x of a number y. The fourth root can be
Look again at the Newton-Raphson method which can be used to numerically approximate cube roots x of a number y. The fourth root can be approximated in a similar way: xn+1=31[2xn+xn2y] xn+1=41[3xn+xn3y] Cube root Fourth root Adapt your design and code for tutorial 3 question 3 to use Newton Raphson in two functions: one which estimate the cube root of a number provided by an input argument, and one which estimates the fourth root. Package your functions in a module, and design and write some code to let the user calculate the cube and 4th roots of a number of their choice. Stretch goal: if you can see a pattern in the formulae, add a function to calculate the nth root to your module, and let the user use it. You don't need to demonstrate this to satisfy this week's requirements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
