Topik 6
Topik 6
Topik 6
y =
1 -12 0 25 116
Y = roots(y)
Y =
11.7473 + 0.0000i
2.7028 + 0.0000i
-1.2251 + 1.4672i
-1.2251 - 1.4672i
y1 =
Columns 1 through 3
Columns 4 through 5
25.0000 116.0000
x =
y5 =
-634
y55 = polyval(y,5)
y55 =
-634
p =
1 0 -2 -5
x = [2 4 5; -1 0 3; 7 1 5]
x =
2 4 5
-1 0 3
7 1 5
px = polyval(p,x)
px =
-1 51 110
-4 -5 16
324 -6 110
pwd
ans =
%Berapakah hasil kali dua polinomial berikut ? a(s) = s2 +2s +3 dengan b(s) = 4s2 +
5s + 6
a = [ 1 2 3]
a =
1 2 3
b = [ 4 5 6]
b =
4 5 6
c = conv(a,b)
c =
4 13 28 27 18
d = conv(b,a)
d =
4 13 28 27 18
q =
4 5 6
w = deconv (d,b)
w =
1 2 3
%Berapakah turunan dari polinomial y , p, c, q di atas ?
dy = polyder (y)
dy =
4 -36 0 25
dp = polyder (p)
dp =
3 0 -2
dc = polyder (c)
dc =
16 39 56 27
dq = polyder (q)
dq =
8 5
dcc = polyder(a,b)
dcc =
16 39 56 27
dqq = polyder(b)
dqq =
8 5
%TANTANGAN
%Diket :
x = [ 1 2 3 4 5]
x =
1 2 3 4 5
y =
Columns 1 through 3
Columns 4 through 5
290.7000 498.4000
% Ditanya : P3?
% Jawab :
P3 = polyfit (x,y,3)
P3 =
Columns 1 through 3
Column 4
35.3400