Selasa, 16 Oktober 2012

Terlampir penambahan dan perkalian matrik ordo 3 x 3




1 2 3 4 5 6 7 8 2 1 2 3 4 5 6 3 4 5 6 7 8 9 4 7 8 9 10 11 12 5 6 + x 7 5 7 9 48 54 60 8 11 13 15 111 126 141 9 17 19 21 174 198 222 ALGORITMA Matrik Penjumlahan i j A(i,j) B(i,j) C(i,j) cell (i,j) i=1 j=1 A(1,1)= 1 B(1,1)= 4 C(1,1)= 5 CELLS(7,2)= 5 i=1 j=2 A(1,2)= 2 B(1,2)= 5 C(1,2)= 7 CELLS(7,3)= 7 i=1 j=3 A(1,3)= 3 B(1,3)= 6 C(1,3)= 9 CELLS(7,4)= 9 i=2 j=1 A(2,1)= 4 B(2,1)= 7 C(2,1)= 11 CELLS(8,2)= 11 i=2 j=2 A(2,2)= 5 B(2,2)= 8 C(2,2)= 13 CELLS(8,3)= 13 i=2 j=3 A(2,3)= 6 B(2,3)= 9 C(2,3)= 15 CELLS(8,4)= 15 i=3 j=1 A(3,1)= 7 B(3,1)= 10 C(3,1)= 17 CELLS(9,2)= 17 i=3 j=2 A(3,2)= 8 B(3,2)= 11 C(3,2)= 19 CELLS(9,3)= 19 i=3 j=3 A(3,3)= 9 B(3,3)= 12 C(3,3)= 21 CELLS(9,4)= 21 Matrik Perkalian i j k C(i,j) A(i,k) B(k,j) C(i,j)2 cells (i,j) i=1 j=1 k=1 C(1,1)= 0 A(1,1)= 1 B(1,1)= 4 4 CELLS(7,6)= 48 i=1 j=1 k=2 C(1,1)= 0 A(1,2)= 2 B(2,1)= 7 14 i=1 j=1 k=3 C(1,1)= 0 A(1,3)= 3 B(3,1)= 10 30 i=1 j=2 k=1 C(1,1)= 0 A(1,1)= 1 B(1,2)= 5 5 CELLS(8,6)= 54 i=1 j=2 k=2 C(1,1)= 0 A(1,2)= 2 B(2,2)= 8 16 i=1 j=2 k=3 C(1,1)= 0 A(1,3)= 3 B(3,2)= 11 33 i=1 j=3 k=1 C(1,1)= 0 A(1,1)= 1 B(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