R: Polynomial arithmetic

Ops.polynom {PolynomF} | R Documentation

## Polynomial arithmetic

### Description

Group generic function to implement arithmetic operations on polynomial objects

### Usage

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

    ## S3 method for class '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

    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")

[Package PolynomF version 2.0-2 Index]