polyder: Derivative of Polynomial

View source: R/polynomials.R

polyderR Documentation

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

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

polyval, polyint

Examples

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

pracma documentation built on Nov. 10, 2023, 1:14 a.m.