powered by
Basic arithmetic operators for rational functions.
# S3 method for rationalfun Ops(e1, e2)
an object of class "rationalfun"
for "^", a positive integer; in other cases, an object of class "rationalfun"
"^"
A new object of "rationalfun" class.
# NOT RUN { r1 <- rationalfun(c(1, 2), c(1, 2, 1)) r2 <- rationalfun(c(1, 1), c(1, -2, 1)) r1 + r2 r1 * r2 r1^2 # }
Run the code above in your browser using DataLab