Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Ops.polynom

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

PolynomF

Polynomials in R

v2.0-3
GPL-2
Authors
Bill Venables, with contribution by Kurt Hornik and Georgi Boshnakov
Initial release
2020-02-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.