PolynomF (version 2.0-2)

Ops.polynom: Polynomial arithmetic

Description

Group generic function to implement arithmetic operations on polynomial objects

Usage

# S3 method for polynom
Ops(e1, e2)

# S3 method for polylist Ops(e1, e2)

Arguments

e1, e2

A numeric vector of a polynomial object. At least one of e1 or e2 must be an object of class "polynom" or "polylist".

Value

A polynomial or polylist object representing the result of the operation.

Examples

Run this code
# NOT RUN {
x <- polynomial()
(p <- (x-1)^5 - 1)
(p1 <- (p + 1)/(x - 1)^2 - 1)
for(i in 0:10) cat(coef((x+1)^i), "\n")
# }

Run the code above in your browser using DataCamp Workspace