Root-finding algorithm
In numerical analysis, a root-finding algorithm is an algorithm for finding zeros, also called roots, of a function. A root of the function is a number such that . As the zeros typically cannot be computed exactly, nor expressed in closed form, root-finding algorithms provide approximations to the zeros. The functions considered are typically continuous or, for most algorithms, differentiable. For real functions and complex functions, the approximations are commonly expressed as floating-point numbers, sometimes with error bounds. Solving an equation is the same as finding the roots of the function . Thus root-finding algorithms can be used to solve any equation of continuous functions. However, most root-finding algorithms do not guarantee that they will find all roots of a function, and if such an algorithm does not find any root, that does not necessarily mean that no root exists. Most numerical root-finding methods are iterative methods, producing a sequence of numbers that...
In numerical analysis, a root-finding algorithm is an algorithm for finding zeros, also called roots, of a function. A root of the function is a number such that . As the zeros typically cannot be computed exactly, nor expressed in closed form, root-finding algorithms provide approximations to the zeros. The functions considered are typically continuous or, for most algorithms, differentiable. For real functions and complex functions, the approximations are commonly expressed as floating-point numbers, sometimes with error bounds. Solving an equation is the same as finding the roots of the function . Thus root-finding algorithms can be used to solve any equation of continuous functions. However, most root-finding algorithms do not guarantee that they will find all roots of a function, and if such an algorithm does not find any root, that does not necessarily mean that no root exists. Most numerical root-finding methods are iterative methods, producing a sequence of numbers that hopefully converges towards a root as a limit. They require one or more initial guesses of the root as starting values, then each iteration of the algorithm produces a successively more accurate approximation to the root. Since the iteration must be stopped at some point, these methods produce an approximation to the root, not an exact solution. Many methods compute subsequent values by evaluating an auxiliary function on the preceding values. The limit is thus a fixed point of the auxiliary function, which is chosen for having the roots of the original equation as fixed points and for converging rapidly to these fixed points. The behavior of general root-finding algorithms is studied in numerical analysis. However, for polynomials specifically, the study of root-finding algorithms belongs to computer algebra, since algebraic properties of polynomials are fundamental for the most efficient algorithms. The efficiency and applicability of an algorithm may depend sensitively on the characteristics of the given functions. For example, many algorithms use the derivative of the input function, while others work on every continuous function. In general, numerical algorithms are not guaranteed to find all the roots of a function, so failing to find a root does not prove that there is no root. However, for polynomials, there are specific algorithms that use algebraic properties for certifying that no root is missed and for locating the roots in separate intervals (or disks for complex roots) that are small enough to ensure the convergence of numerical methods (typically Newton's method) to the unique root within each interval (or disk). c= \frac{af(b)-bf(a)}{f(b)-f(a)}. False position is similar to the secant method, except that, instead of retaining the last two points, it makes sure to keep one point on either side of the root. The false position method can be faster than the bisection method and will never diverge like the secant method. However, it may fail to converge in some naive implementations due to roundoff errors that may lead to a wrong sign for . Typically, this may occur if the derivative of is large in the neighborhood of the root. We can use the fixed-point iteration to find the root of a function. Given a function f(x) which we have set to zero to find the root ( f(x)=0 ), we rewrite the equation in terms of x so that f(x)=0 becomes x=g(x) (note, there are often many g(x) functions for each f(x)=0 function). Next, we relabel each side of the equation as x_{n+1}=g(x_{n}) so that we can perform the iteration. Next, we pick a value for x_{1} and perform the iteration until it converges towards a root of the function. If the iteration converges, it will converge to a root. The iteration will only converge if |g'(root)| . As an example of converting f(x)=0 to x=g(x) , if given the function f(x)=x^2+x-1 , we will rewrite it as one of the following equations. x_{n+1}=(1/x_n) - 1 , x_{n+1}=1/(x_n+1) , x_{n+1}=1-x_n^2 , x_{n+1}=x_n^2+2x_n-1 , or x_{n+1}=\pm \sqrt{1-x_n} .
References
- Numerical Recipes: The Art of Scientific Computing . · 1791068400.0
- Order of Convergence . · 1791068400.0
- Cite book |last=Vrahatis |first=Michael N. |date=2020 |editor-last=Sergeyev |editor-first=Yaroslav D. |editor2-last=Kvasov |editor2-first=Dmitri E. |chapter=Generalizations of the Intermediate Value . · 1791068400.0
Cite this
"Root-finding algorithm". 1791107731. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1378425161