int2fun: Convert a call to a function

Description Usage Arguments Value See Also Examples

View source: R/rf_deriv_integral.R

Description

Convert a function call to a function in R. In this package, the function is typically used to convert the result of integral.rationalfun() to a function with one argument.

Usage

1
int2fun(expr)

Arguments

expr

a function call, typically returned by integral.rationalfun().

Value

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

See Also

integral.polynomial

Examples

1
2
3
4
5
x <- rationalfun(c(-6, -1, -8, 15, -1, 8, -9, 2), 
    c(8, 12, 16, 4, 4))
int <- integral(x)
fun <- int2fun(int)
fun(c(0, 1))

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