nth root algorithm

This is an old revision of this page, as edited by 121.54.58.143 (talk) at 04:15, 15 October 2015. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The principal nth root of a positive real number A, is the positive real solution of the equation

at each step, but can be efficiently implemented with a good exponentiation algorithm.

Derivation from Newton's method

Newton's method is a method for finding a zero of a function f(x). The general iteration scheme is:

  1. Make an initial guess  
  2. Set  
  3. Repeat step 2 until the desired precision is reached.

The nth root problem can be viewed as searching for a zero of the function

 

So the derivative is

 

and the iteration rule is

 
 
 
 

leading to the general nth root algorithm.

See also

References

  • Atkinson, Kendall E. (1989), An introduction to numerical analysis (2nd ed.), New York: Wiley, ISBN 0-471-62489-6.