Learn R Programming

PolynomF (version 2.0-8)

predict.polynom: Evaluate a polynomial

Description

Evaluate a polynomial, or polylist object components.

Usage

# S3 method for polynom
predict(object, newdata, ...)

# S3 method for polylist predict(object, newdata, ...)

Value

If newdata is a numeric vector, a numeric vector of results. If newdata is a polynomial, then the composition is returned as a polynomial, or polylist object.

Arguments

object

A polynomial or polylist object

newdata

A target object at which to evaluate.

...

Not used