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

x_{new} = x_{old} - f(x_{old})/f'(x_{old})

For this exercise, write a program to compute nth roots of floating-point numbers.