Ops.rationalfun: Operators for rational functions

View source: R/rf_operators.R

Ops.rationalfunR Documentation

Operators for rational functions

Description

Basic arithmetic operators for rational functions.

Usage

## S3 method for class 'rationalfun'
Ops(e1, e2)

Arguments

e1

an object of class "rationalfun"

e2

for "^", a positive integer; in other cases, an object of class "rationalfun"

Value

A new object of "rationalfun" class.

Examples

r1 <- rationalfun(c(1, 2), c(1, 2, 1))
r2 <- rationalfun(c(1, 1), c(1, -2, 1))
r1 + r2
r1 * r2
r1^2

yixuan/rationalfun documentation built on March 17, 2022, 8:45 p.m.