Evaluate a Polynomial

Usage

predict.polynomial(p, newdata, ...)

Arguments

p A polynomial object to be evaluated.
newdata Argument at which evaluation is requested. May be numeric or itself a polynomial
... Not used by this method.

Description

Evaluate a polynomial at a given numeric or polynomial argument.

Details

This is a method for the generic function predict.

The polynomial is evaluated according to the horner scheme for speed and numerical accuracy.

Value

Evaluated object of the same class as newdata.

See Also

as.function.polynomial


[Package Contents]