summary.polynom {PolynomF}R Documentation

Summary, coefficient and prediction methos for polynomial objects.

Description

These function implement methods for summary, coef, and predict generic funcitons for polynom and polylist objects.

Usage

## S3 method for class 'polynom':
summary(object, ...)
## S3 method for class 'polynom':
summary(object, ...)
## S3 method for class 'summary.polynom':
print(x, ...)
## S3 method for class 'polynom':
coef(object, ...)
## S3 method for class 'polylist':
coef(object, ...)
## S3 method for class 'polynom':
predict(object, newdata, ...)
## S3 method for class 'polylist':
predict(object, newdata, ...)

Arguments

object An object of class polynom or polylist.
x A summary.polynom object to be printed.
newdata A numeric or polynom object.
... Not currently used.

Details

The summary method for polynom objects provides information on the zeros, stationary points and points of inflexion for the object. For polylist objects this information is provided for each polynomial in the list. The result is a list.

Value

For summary.polynom and summary.polylist a list of numeric vectors.
For predict.polynom and predict.polylist an object of the same class as the input argument: either numeric or polynom.
For coef.polynom and coef.polylist a numeric vector or matrix, or a list of numeric vectors.

Author(s)

Bill Venables

References

None.

Examples

x <- polynom()
L <- polylist(1, 1-x)
for(j in 2:10)
  L[[j+1]] <- (2*j - 1 - x)*L[[j]] - (j-1)^2*L[[j-1]]

summary(L[[5]])
predict(L[[5]], x-1)
L[[5]](x-1)

coef(L)


[Package PolynomF version 0.93 Index]