responsi TI
07.11 |
Program pengulangan
>> A=[2,7,3,5;-2,2,1,4;0,1,9,2;3,4,2,1]
A =
2 7 3 5
-2 2 1 4
0 1 9 2
3 4 2 1
>> B=5*A
B =
10 35 15 25
-10 10 5 20
0 5 45 10
15 20 10 5
>> inv(A)
ans =
17.0000 -16.2857 1.0000 -21.8571
-16.0000 15.2857 -1.0000 20.8571
-2.0000 1.8571 -0.0000 2.5714
17.0000 -16.0000 1.0000 -22.0000
>>det(A)
ans =
-7
>> A'
ans =
2 -2 0 3
7 2 1 4
3 1 9 2
5 4 2 1
>> C=A^3
C =
55 383 614 378
6 71 144 78
42 248 853 292
40 254 407 247
>> D=A+B
D =
12 42 18 30
-12 12 6 24
0 6 54 12
18 24 12 6
>> A=[2,-5,2;1,2,-4;3,-4,-6]
A =
2 -5 2
1 2 -4
3 -4 -6
>> a=det(A)
a =
-46
>> B=[7,-5,2;3,2,-4;5,-4,-6]
B =
7 -5 2
3 2 -4
5 -4 -6
>> b=det(B)
b =
-230
>> x=b/a
x =
5
>> C=[2,7,2;1,3,-4;3,5,-6]
C =
2 7 2
1 3 -4
3 5 -6
>> c=det(C)
c =
-46
>> y=c/a
y =
1
>> D=[2,-5,7;1,2,3;3,-4,5]
D =
2 -5 7
1 2 3
3 -4 5
>> d=det(D)
d =
-46
>> z=d/a
z =
1
>>
Exell
Program Grade Nilai | |||||||||||
file:///D:/laporan_TI/data%20lthn%20responsi.docx | |||||||||||
Langganan:
Postingan (Atom)