simplify: Simplify a rational function

View source: R/rf_operators.R

simplifyR Documentation

Simplify a rational function

Description

Simplify a rational function by dropping terms whose coefficients are close to zero, and then reducing it to an irreducible form.

Usage

simplify(x, ...)

Arguments

x

an object of class "rationalfun"

...

currently not used in this function

Value

A new object of class "rationalfun"representing the simplified rational function.

Examples

# (x + 1) / (x^2 + 2 * x + 1) ==> 1 / (x + 1)
r <- rationalfun(c(1, 1), c(1, 2, 1))
simplify(r)

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