predict.rationalfun: Evaluate a rational function

View source: R/rf_base.R

predict.rationalfunR Documentation

Evaluate a rational function

Description

Evaluate a rational function at a real or complex vector.

Usage

## S3 method for class 'rationalfun'
predict(object, newdata, ...)

Arguments

object

an object of class "rationalfun"

newdata

a vector at which evaluation is requested.

...

not used in this function Both real and complex vectors are accepted.

Value

A vector of evaluated results.

See Also

predict.polynomial

Examples

r <- rationalfun(c(1, 1), c(3, 2, 1))
predict(r, 1:10)

rationalfun documentation built on March 18, 2022, 6:07 p.m.