请输入您要查询的百科知识:

 

词条 Nth root algorithm
释义

  1. Derivation from Newton's method

  2. See also

  3. References

{{DISPLAYTITLE:nth root algorithm}}

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

.

(For a positive integer n there are n distinct complex solutions to this equation if , but only one is positive and real).

There is a very fast-converging nth root algorithm for finding :

  1. Make an initial guess
  2. Set . In practice we do .
  3. Repeat step 2 until the desired precision is reached, i.e. .

A special case is the familiar square-root algorithm. By setting n = 2, the iteration rule in step 2 becomes the square root iteration rule:

Several different derivations of this algorithm are possible. One derivation shows it is a special case of Newton's method (also called the Newton-Raphson method) for finding zeros of a function beginning with an initial guess. Although Newton's method is iterative, meaning it approaches the solution through a series of increasingly accurate guesses, it converges very quickly. The rate of convergence is quadratic, meaning roughly that the number of bits of accuracy doubles on each iteration (so improving a guess from 1 bit to 64 bits of precision requires only 6 iterations). For this reason, this algorithm is often used in computers as a very fast method to calculate square roots.

For large n, the nth root algorithm is somewhat less efficient since it requires the computation of 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

  • Recurrence relation
  • Shifting nth root algorithm

References

  • {{Citation |first=Kendall E. |last=Atkinson |title=An introduction to numerical analysis |location=New York |publisher=Wiley |year=1989 |edition=2nd |isbn=0-471-62489-6 }}.

1 : Root-finding algorithms

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 9:24:30