deriv.polynomial | R Documentation |
Calculates the derivative of a univariate polynomial.
## S3 method for class 'polynomial' deriv(expr, ...)
expr |
an object of class |
... |
further arguments to be passed to or from methods. |
This is a method for the generic function deriv
.
Derivative of the polynomial.
integral.polynomial
,
deriv
.
pr <- poly.calc(1:5) pr ## -120 + 274*x - 225*x^2 + 85*x^3 - 15*x^4 + x^5 deriv(pr) ## 274 - 450*x + 255*x^2 - 60*x^3 + 5*x^4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.