Anda di halaman 1dari 3

NAMA : EDYSUL ISDAR

NIM : 60400119009
KELAS : A

NOMOR 1
a.X2-5x+6 = 0
>> A=[1 -5 6]
A =
1 -5 6
>> roots(A)
ans =
3.0000
2.0000
b.x2+7x+9 = 0
>> B=[1 7 9]
B =
1 7 9
>> roots(B)
ans =
-5.3028 -1.6972
c. 3x2-6x+5 = 0
>> C=[3 -6 5]
C =
3 -6 5
>> roots(C)
ans =
1.0000 + 0.8165i
1.0000 - 0.8165i
d. x3+4x2-6x+2 = 0
>> D=[1 4 -6 2]
D =
1 4 -6 2
>> roots(D)
ans =
-5.22226 + 0.00000i
0.61113 + 0.09744i
0.61113 - 0.09744i
e. x3-6x2-72x-27 = 0
>> E=[1 -6 -72 -27]
E =
1 -6 -72 -27
>> roots(E)
ans =
12.12289
-5.73451
-0.38838

NOMOR 2
Y = 4 sin 0,1t
a. A,T,f = ……?

A=input('input nilai periode A dalam satuan (cm)= 4'); w=input('input nilai


kecepatan sudut w dalam satuan (rad/s)= 0,1');
T=2π/0,1
A = 4cm
T = 2π/w
= 2π/0,1
= 20π s F = 1/T
= 1/20π
= 0,05/π Hz
b. Persamaan kecepatan dan perpecepatannya kecepatan V = dy/dt
= w*A*cos w*t
= 0,1*4*cos 0,1*t
= 0,4 cos 0,1t
Percepatan
A = dv/dt
= -w2*y
= -(0,1)2*4*sin 0,1*t
= -0,04 sin 0,1t
c. Saat t = 5π sekon
Simpangan ;
Y = 4*sin 0,1*t
= 4*sin 0,1*5π
= 4 sin 0,5π
= 4 sin 90o
= 4 cm
Kecepatan ;
V = 0,4*cos 0,1*t
= 0,4*cos 0,1*5π
= 0,4 cos 0,5π
= 0,4 cos 90o
= 0 Percepatan ; a = -w2*Y
= -(0,1)2*4
= -0,01*4
= -0,04 cm/s2

NOMOR 4
>> B = [2 7 4 12]
B =
2 7 4 12
>> C=[1 9]
C =
1 9
>> M=[12 0 0 10 30 2]
M =
12 0 0 10 30 2
>> N=[10 3 1]
N =
10 3 1
>> D=conv(B,C)
D =
2 25 67 48 108
>> E=D+C error: operator +: nonconformant arguments (op1 is 1x5, op2 is
1x2)
jadi jumlah baris dan kolom dari D dan C tidak sama maka tidak bisa
dioperasikan oleh octave.
>> G=D-C error: operator -: nonconformant arguments (op1 is 1x5, op2 is
1x2)
jadi jumlah baris dan kolom dari D dan C tidak sama maka tidak bisa
dioperasikan oleh octave.
>> L=deconv(M,N)
L =
1.200000 -0.360000 -0.012000 1.039600

NOMOR 6
X4-8x2+15 = 0 dengan fungsi 1/x+x = 2
>> A= [1 0 -8 15]
A =
1 0 -8 15 >> roots(A)
ans =
-3.5043 + 0.0000i
1.7522 + 1.1001i
1.7522 - 1.1001i

NOMOR 7
Z= x6+x5+10x4+x5+10x4+9x+100
>> Z=[1 1 10 1 10 9 100]
Z =
1 1 10 1 10 9 100
>> roots(Z)
ans =
-0.4489 + 3.1169i
-0.4489 - 3.1169i
1.2357 + 1.2585i
1.2357 - 1.2585i
-1.2868 + 1.2593i
-1.2868 - 1.2593i
>> poly(Z)
ans =
1 -132 3570 -38828 186369 -359880 298900 -90000

NOMOR 8
Diketahui matriks C=[100 10 11; 26 1 60; 16 0 50]
>> C=[100 10 11; 26 1 60; 16 0 50]
C =
100 10 11
26 1 60
16 0 50
>> poly(A)
ans =
1 -4
>> roots(A)
ans = [](0x1)
>> eig(A)
ans = 4

Anda mungkin juga menyukai