as.function.rationalfun: Convert object to function

Description Usage Arguments Value See Also Examples

View source: R/rf_base.R

Description

This function converts an object of class "rationalfun" to a function.

Usage

1
2
## S3 method for class 'rationalfun'
as.function(x, ...)

Arguments

x

an object of class "rationalfun"

...

not used in this function

Value

A function with one argument which could be a real or complex vector.

See Also

as.function.polynomial

Examples

1
2
3
4
5
6
r <- rationalfun(c(1, 1), c(3, 2, 1))
r
f <- as.function(r)
f
f(1:10)
f(1:10 + (0 + (0+2i)))

rationalfun documentation built on May 30, 2017, 2:04 a.m.