Learn R Programming

PolynomF (version 2.0-8)

GroupGenerics: Summary and Math methods for polynomials

Description

These provide methods for the generic function Summary and Math for polynomial and polylist objects. For Summary only sum and prod members are implemented

Usage

# S3 method for polynom
Summary(..., na.rm = FALSE)

# S3 method for polylist Summary(..., na.rm = FALSE)

# S3 method for polynom Math(x, ...)

# S3 method for polylist Math(x, ...)

Value

The result of the group generic operation

Arguments

...

Additional arguments

na.rm

Logical: should missing values be removed?

x

a "polynom" or "polylist" objects.

Examples

Run this code
lis <- as_polylist(lapply(-2:3, function(x) polynomial() - x))
prod(lis)
sum(lis)
solve(prod(lis))
solve(sum(lis))

Run the code above in your browser using DataLab