Learn R Programming

PolynomF (version 2.0-8)

deriv.polynom: Polynomial Calculus

Description

Find the derivative or indefinite integral of a polynomial object, or list thereof.

Usage

# S3 method for polynom
deriv(expr, ...)

integral(expr, ...)

# S3 method for default integral(expr, ...)

# S3 method for polynom integral(expr, limits = NULL, ...)

# S3 method for polylist deriv(expr, ...)

# S3 method for polylist integral(expr, ...)

Value

A coeffieient vector, or list thereof

Arguments

expr

A polynomial object, or list thereof

...

Unused as yet

limits

Real limits of a definite integral

Examples

Run this code
p <- poly_from_roots(-2:3)
p
deriv(p)
integral(p)

Run the code above in your browser using DataLab