The best known iterative method in order compute the roots of the function f (that is, the x-values for which f(x) is 0) is Newton-Raphson approximation. To determine the zero of a function whose derivative is also called, compute xnew = xold − f (xold) f′(xold).
For this exercise, write down a program in order to compute the nth roots of the floating-point numbers. Prompt user for a and n, then get a by computing a zero of the function f(x) = xn − a.