deriv.rationalfun: Differentiate a rational function

Description Usage Arguments Value See Also Examples

View source: R/rf_deriv_integral.R

Description

Calculate the derivative of a rational function. The returned value result is still an object of class "rationalfun".

Usage

1
2
## S3 method for class 'rationalfun'
deriv(expr, ...)

Arguments

expr

an object of class "rationalfun"

...

not used in this function

Value

An object of class "rationalfun" representing the derivative of the original rational function.

See Also

deriv.polynomial, deriv

Examples

1
2
3
# (x + 1) / (x^2 + x + 1)
r <- rationalfun(c(1, 1), c(1, 1, 1))
deriv(r)

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