Learn R Programming

pracma (version 1.8.8)

polyder: Derivative of Polynomial

Description

Differentiate polynomials.

Usage

polyder(p, q)

Arguments

p
polynomial p given as a vector
q
polynomial p given as a vector

Value

  • a vector representing a polynomial

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.

See Also

polyval, polyint

Examples

Run this code
polyder(c(3, 6, 9), c(1, 2, 0))  # 12 36 42 18

Run the code above in your browser using DataLab