mpe: Perform minimal polynomial extrapolation

Description Usage Arguments Value References Examples

View source: R/RcppExports.R

Description

This method removes any geometric terms from a sequence, leaving you with the limit. Note, as in the examples, that it will happily remove divergent sequences. This is a feature rather than a bug.

Usage

1

Arguments

sequence

a matrix, the columns of which are the sequence to accelerate

Value

the MPE limit

References

Cabay, S. and Jackson, L.W. (1976), A polynomial extrapolation method for finding limits and antilimits for vector sequences, SIAM J. Numer. Anal. 13, 734–752.

Examples

1
2
3
4
ind <- seq_len(5)
vals <- 0.5^(ind - 1)
mpe(matrix(vals, nrow=1))
mpe(rbind(vals, 2 + vals))

pdmetcalfe/extrapolatr documentation built on June 12, 2021, 8:09 p.m.