In
numerical analysis
Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of numerical methods th ...
, the Shanks transformation is a
non-linear
In mathematics and science, a nonlinear system is a system in which the change of the output is not proportional to the change of the input. Nonlinear problems are of interest to engineers, biologists, physicists, mathematicians, and many other ...
series acceleration In mathematics, series acceleration is one of a collection of sequence transformations for improving the rate of convergence of a series. Techniques for series acceleration are often applied in numerical analysis, where they are used to improve ...
method to increase the
rate of convergence
In numerical analysis, the order of convergence and the rate of convergence of a convergent sequence are quantities that represent how quickly the sequence approaches its limit. A sequence (x_n) that converges to x^* is said to have ''order of co ...
of a
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is called ...
. This method is named after
Daniel Shanks
Daniel Shanks (January 17, 1917 – September 6, 1996) was an American mathematician who worked primarily in numerical analysis and number theory. He was the first person to compute π to 100,000 decimal places.
Life and education
Shanks was ...
, who rediscovered this sequence transformation in 1955. It was first derived and published by R. Schmidt in 1941.
[Weniger (2003).]
Formulation
For a sequence
the series
:
is to be determined. First, the partial sum
is defined as:
:
and forms a new sequence
. Provided the series converges,
will also approach the limit
as
The Shanks transformation
of the sequence
is the new sequence defined by
[Bender & Orszag (1999), pp. 368–375.][Van Dyke (1975), pp. 202–205.]
:
where this sequence
often converges more rapidly than the sequence
Further speed-up may be obtained by repeated use of the Shanks transformation, by computing
etc.
Note that the non-linear transformation as used in the Shanks transformation is essentially the same as used in
Aitken's delta-squared process so that as with Aitken's method, the right-most expression in
's definition (i.e.
) is more numerically stable than the expression to its left (i.e.
). Both Aitken's method and the Shanks transformation operate on a sequence, but the sequence the Shanks transformation operates on is usually thought of as being a sequence of partial sums, although any sequence may be viewed as a sequence of partial sums.
Example
As an example, consider the slowly convergent series
[
:
which has the exact sum ''π'' ≈ 3.14159265. The partial sum has only one digit accuracy, while six-figure accuracy requires summing about 400,000 terms.
In the table below, the partial sums , the Shanks transformation on them, as well as the repeated Shanks transformations and are given for up to 12. The figure to the right shows the absolute error for the partial sums and Shanks transformation results, clearly showing the improved accuracy and convergence rate.
The Shanks transformation already has two-digit accuracy, while the original partial sums only establish the same accuracy at Remarkably, has six digits accuracy, obtained from repeated Shank transformations applied to the first seven terms As said before, only obtains 6-digit accuracy after about summing 400,000 terms.
]
Motivation
The Shanks transformation is motivated by the observation that — for larger — the partial sum quite often behaves approximately as[
:
with so that the sequence converges transiently to the series result for
So for and the respective partial sums are:
:
These three equations contain three unknowns: and Solving for gives][
:
In the (exceptional) case that the denominator is equal to zero: then for all
]
Generalized Shanks transformation
The generalized ''k''th-order Shanks transformation is given as the ratio of the determinant
In mathematics, the determinant is a scalar value that is a function of the entries of a square matrix. It characterizes some properties of the matrix and the linear map represented by the matrix. In particular, the determinant is nonzero if ...
s:[Bender & Orszag (1999), pp. 389–392.]
:
with It is the solution of a model for the convergence behaviour of the partial sums with distinct transients:
:
This model for the convergence behaviour contains unknowns. By evaluating the above equation at the elements and solving for the above expression for the ''k''th-order Shanks transformation is obtained. The first-order generalized Shanks transformation is equal to the ordinary Shanks transformation:
The generalized Shanks transformation is closely related to Padé approximant
In mathematics, a Padé approximant is the "best" approximation of a function near a specific point by a rational function of given order. Under this technique, the approximant's power series agrees with the power series of the function it is a ...
s and Padé tables.[
Note: The calculation of determinants requires many arithmetic operations to make, however Peter Wynn discovered a recursive evaluation procedure called epsilon-algorithm which avoids to calculate the determinants.
]
See also
* Aitken's delta-squared process
*Anderson acceleration
In mathematics, Anderson acceleration, also called Anderson mixing, is a method for the acceleration of the convergence rate of fixed-point iterations. Introduced by Donald G. Anderson, this technique can be used to find the solution to fixed poi ...
*Rate of convergence
In numerical analysis, the order of convergence and the rate of convergence of a convergent sequence are quantities that represent how quickly the sequence approaches its limit. A sequence (x_n) that converges to x^* is said to have ''order of co ...
*Richardson extrapolation
In numerical analysis, Richardson extrapolation is a sequence acceleration method used to improve the rate of convergence of a sequence of estimates of some value A^\ast = \lim_ A(h). In essence, given the value of A(h) for several values of h, ...
*Sequence transformation
In mathematics, a sequence transformation is an operator acting on a given space of sequences (a sequence space). Sequence transformations include linear mappings such as convolution with another sequence, and resummation of a sequence and, more ...
Notes
References
*
*
*
*
*
*
*
* {{ citation , first=P. , last=Wynn , title=Acceleration techniques for iterated vector and matrix problems , journal=Math. Comp. , volume=16 , year=1962 , pages=301–322
Numerical analysis
Asymptotic analysis
Iterative methods