Professional Documents
Culture Documents
•Polynomial overview
•Representing polynomials
•Arithmetic operations on polynomials
•Polynomial roots
•Polynomial coefficients
•Polynomial evaluation
•Convolution and deconvolution
Polynomial overview:
• Finding roots of polynomial
• polynomial derivation
• polynomial integration
• Partial fraction
>> p=[1 -10 35 -50 24]
p =
1 -10 35 -50 24
>> roots_p=roots(p)
roots_p =
4.0000
3.0000
2.0000
1.0000
>> p=[16 0 52] % zero is the coeff of x term
p =
16 0 52
>> root_p=roots(p)
root_p =
0.0000 + 1.8028i
0.0000 - 1.8028i
>> r=[1 2 3 4]
r =
1 2 3 4
>> poly_r=poly(r)
poly_r =
1 -10 35 -50 24
>> p=[1 -3 0 5 -4 3 2]
p =
1 -3 0 5 -4 3 2
>> vall=polyval(p,-3)
vall =
1280
>> p1=[2 3 2];
>> p2=[5 2];
>> conv(p1,p2)
ans =
10 19 16 4
>> p=[2 1];
>> q=[1 1];
>> [q,r]=deconv(p,q)
q =
2
r =
0 -1
>> p=[2 1 0 4];
>> polyder(p)
ans =
6 2 0
>> p=[1 1 1];
>> polyint(p)
ans =
>> [r,p,k]=residue(b,a)
r =
2
3
p =
2
-1
k =
[]
Now, convert the partial fraction expansion back to polynomial
coefficients.
>> [b,a]=residue(r,p,k)
b =
5 -4
a =
1 -1 -2
Compute transfer function as
>> tf(b,a)
ans =
5 s - 4
-----------
s^2 - s - 2