predict.polynomial | R Documentation |
Evaluate a polynomial at a given numeric or polynomial argument.
## S3 method for class 'polynomial' predict(object, newdata, ...)
object |
A polynomial object to be evaluated. |
newdata |
Argument at which evaluation is requested. May be numeric or itself a polynomial |
... |
Not used by this method. |
This is a method for the generic function predict
.
The polynomial is evaluated according to the Horner scheme for speed and numerical accuracy.
Evaluated object of the same class as newdata
.
as.function.polynomial
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.