powered by
Group generic function to implement arithmetic operations on polynomial objects
# S3 method for polynom Ops(e1, e2)# S3 method for polylist Ops(e1, e2)
# S3 method for polylist Ops(e1, e2)
A polynomial or polylist object representing the result of the operation.
A numeric vector of a polynomial object. At least one of e1 or e2 must be an object of class "polynom" or "polylist".
e1
e2
"polynom"
"polylist"
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 DataLab