polyder

Derivative of a polynomial.

Syntax

q = polyder(p)

q = polyder(a,b)

[n,d] = polyder(a,b)

Inputs

p
The coefficients of the polynomial to differentiate.
Dimension: vector
a,b
The coefficients of a polynomial product (a*b) or quotient (a/b) to differentiate, depending on the outputs specified.
Dimension: vector

Outputs

q
The coefficients of the polynomial derivative.
n,d
The coefficients of the polynomial derivative, expressed as a ratio (n/d) when the input is a polynomial quotient.

Example

Derivative of a single polynomial, 2x^4 + 3x^3 + 3x^2 + 2x + 1.

q = polyder([2,3,3,2,1])
q = [Matrix] 1 x 4
8  9  6  2