ooom {multipol}R Documentation

One over one minus a multipol

Description

Uses Taylor's theorem to give one over one minus a multipol

Usage

ooom(n, a, maxorder=NULL)

Arguments

n The order of the approximation; see details
a A multipol
maxorder A vector of integers giving the maximum order as per taylor()

Details

The motivation for this function is the formal power series 1/(1-x)=1+x+x^2+.... The way to think about it is to observe that~(1+x^2+...+x^n)*(1-x)=1-x^(n+1).

Argument n specifies how many terms of the series to take.

The function uses an efficient array method when x has only a single non-zero entry. In other cases, a variant of Horner's method is used.

Author(s)

Robin K. S. Hankin

See Also

taylor

Examples

ooom(4,homog(3,1))

[Package multipol version 1.0-2 Index]