A package to implement a class of objects that behave like univariate
polynomails. Arithmetic operations (addition, subtraction,
multiplication, division, remainder, raising to a non-negative integer
power) are supported in a natural way. The objects also act as R
functions. This package is a successor to the `polynom' package,
but has a simpler and more convenient representation for the objects.
Like `polynom' it uses S3 classes and methods.
The constructor function polynom
is used to create polynomial
objects from their coefficient vector, in power series order. Once
polynomials are constructed they may used as objects in arithmetic
operations, integration and differentiation, and as R functions that
evaluate the polynomial either at a numeric or complex vector, or at
another polynomial, i.e. substituting one polynomial into
another. Facilities are also provided for graphical presentation and
calculation of complex zeros.
The constructor function polylist
may be used to create a
list of polynomial objects. Operations on polylist
objects include simultaneous graphical display of all components and
coercion to function. The function may then be used to evaluate all
all polynomials on the list simultaneously at the same argument.