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

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 class 'polynom'
Summary(..., na.rm = FALSE)

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

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

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

Arguments

...

Additional arguments

na.rm

Logical: should missing values be removed?

x

a "polynom" or "polylist" objects.

Value

The result of the group generic operation

Examples

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

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.