Problem:
Use Newton's method to find a root of the function

f(x) = xn - a

for various values of n and a.


Visualization:
Enter a positive integer value for n:

Enter a positive value for a:

Enter an estimate of the root: