polyder(p, q)
p
given as a vectorp
given as a vector polyder(p)
returns the derivative of p
while
polyder(p, q)
returns the derivative of the product of the
polynomials p
and q
.
polyval
, polyint
polyder(c(3, 6, 9), c(1, 2, 0)) # 12 36 42 18
Run the code above in your browser using DataLab