Learn R Programming

polynomial (version 0.1.0)

polynomial-package: polynomial

Description

polynomial

Arguments

Details

A set of functions for some common polynomials have been provided, they can be found in CommonPolynomials.

The most important functions are:

as.polynomial to turn an object into a polynomial.

coef, coef<-, exponents and exponents<- for extracting and replacing polynomial coefficients and exponents.

reduce for simplifying polynomials.

as.function to turn a polynomial into a function.

plot for visualizing a polynomial.

Arithmetic is defined for polynomials (unary and binary + and -, *, /, ^), but not in the same way as the base arithmetic operators.