[TOC]

polyder

Polynomial Differentiation

Usages

q = polyder(p)

q = polyder(a,b)

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

Examples

Input
polyder(1:5)
Output
ans =
4.000   6.000   6.000   4.000
Input
% Derivative of the product of a and b.
a=1:5;
b=1:2;
q1 = polyder(a, b)
% The above is the same as differentiation 
% after polynomial multiplication using conv().
q2 = polyder(conv(a, b))
Output
q1 =
 5.000   16.00   21.00   20.00   13.00

q2 =
 5.000   16.00   21.00   20.00   13.00

Differences with MATLAB

 Empty array as inputNon-vector input
MATLABReturning 0The input is reshaped to a vector
SIMONot allowedNot allowed