Newton-Raphson Roots

The following code uses the Newton-Raphson method to find the nth root of a positive real number. This method is an iterative method that uses an approximation to make a better approximation.

For example, the square root of two is roughly 1.4 or 1.41 or 1.414; use the applet below to find it to 1000 digits or 5000 digits, or more! The applet is initially set up to compute the cube root of 4.