R: Derivative of Polynomial

polyder {pracma} | R 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

[Package pracma version 2.0.4 Index]