- naginterfaces.library.sum.accelerate(seqn, ncall, comm, nterms)¶
accelerateaccelerates the convergence of a given convergent sequence to its limit.
For full information please refer to the NAG Library document for c06ba
The next term of the sequence to be considered.
On the first call must be set to . Thereafter must not be changed between calls.
- commdict, communication object, modified in place
On initial entry: need not be set.
The maximum number of terms in the sequence.
The number of terms in the sequence that have been considered.
The estimate of the limit of the sequence. For the first two calls, .
An estimate of the absolute error in . For the first three calls, is set to a large machine-dependent constant.
- (errno )
On entry, .
No equivalent traditional C interface for this routine exists in the NAG Library.
accelerateperforms Shanks’ transformation on a given sequence of real values by means of the Epsilon algorithm of Wynn (1956). A (possibly unreliable) estimate of the absolute error is also given.
The function must be called repetitively, once for each new term in the sequence.
Shanks, D, 1955, Nonlinear transformations of divergent and slowly convergent sequences, J. Math. Phys. (34), 1–42
Wynn, P, 1956, On a device for computing the transformation, Math. Tables Aids Comput. (10), 91–96