The best known iterative method for computing the roots of a function f (that is, the x-values for which f(x) is 0) is Newton-Raphson approximation. To find the zero of a function whose derivative is also known, compute
xnew = xold - f(xold)/f'(xold)
For this exercise, write a program to compute nth roots of floating-point numbers.