Differentiate polynomials.

polyder(p, q)

Arguments

p

polynomial p given as a vector

q

polynomial p given as a vector

Details

Calculates the derivative of polynomials and polynomial products.

polyder(p) returns the derivative of p while polyder(p, q) returns the derivative of the product of the polynomials p and q.

Value

a vector representing a polynomial

See also

Examples

  polyder(c(3, 6, 9), c(1, 2, 0))  # 12 36 42 18
#> [1] 12 36 42 18