Anggota Kelompok :
Andhieka Rizky Kurnianto 21050116120057
Maulana Ismudiaji 21050116120059
Andre Refaldo Pratama 21050116130075
Putut Yoga Pradiptya 21050116130077
Arifin Aziz 21050116130086
David Setianto Kadarman 21050116130093
Sistem Persamaan Linear
Diketahui SPL:
2x1 + 2x2 + x3 = 4
3x1 - x2 + x3 = 1
x1 + 4x2 - x3 = 2
Bagaimana penyelesaiannya?
Algoritma Gauss Naif (Ex.)
1 1 1
2 x1 2
2. dan 3.
b2 3b1 0 4 1 x2 5
2
1 4 1 x3 2
4. dan 5. 1 1 1
2 x1 2
b3 b1 0 4 1 x2 5
2
0 3 3 x3 0
2
Algoritma Gauss Naif (Ex.)
1 1 1
6. 2 x1 2
1
b2 0 1 1 x2 5
4 8 4
0 3 3 x3 0
2
7. dan 8. 1 1 1 x 2
2 1
1 x2 5
b3 3b2 0 1
8 4
0 0 15 x3 15
8 4
Algoritma Gauss Naif (Ex.)
Hasil:
15 x3 15 x2 1 x3 5
8 4 8 4
x3 2 x2 5 1 2 1
4 8
x1 x2 1 x3 2
2
x1 2 1 1 2 0
2
Algoritma Gauss Jordan
Diketahui SPL:
2x1 + 2x2 + x3 = 4
3x1 - x2 + x3 = 1
x1 + 4x2 - x3 = 2
Bagaimana penyelesaiannya?
Algoritma Gauss Jordan (Ex.)
Langkah:
1.
2 2 1 1 0 0 x1 4
3 1 1 0 1 0 x2 1
1 4 1 0 0 1 x3 2
2.
1 1 1 1 0 0 x1 2
1 2 2
b1 3 1 1 0 1 0 x2 1
2 x 2
1 4 1 0 0 1 3
Algoritma Gauss Jordan (Ex.)
1 1 0 0 x 2
3. 1 1 2 2 1
b2 3b1 0 4 1 3 1 0 x2 5
2 2
b3 b1 0 3 3 1 0 1 x3 0
2 2
4. 1 1 0 0 x 2
1 1 2 2 1
1 3
b2 0 1 1 1 0 x2 5
4 8 8 4 4
0 3 3 1 0 1 x3 0
2 2
Algoritma Gauss Jordan (Ex.)
5. 3 1 1 0 x 3
b1 b2
1 0 8 8 4 1 4
3
0 1 1 1 0 x 2 5
b3 3b2 8 8 4 4
0 0 15 13 3
1 x3 15
8 8 4 4
3 1 1 0 x 3
6. 1 0 8 8 4 1 4
8 3
b3 0 1 1 1 0 x2 5
15 8 8 4 4
0 0 1 13 6 8 x3 2
15 15 15
Algoritma Gauss Jordan (Ex.)
b1 3 b3
21 2 1
7.
8 1 0 0 5 5 5 x1 0
b2 1 b3
0 1 0 4 1 1 x2 1
8 15 5 15
0 0 1 13 6 8 x3 2
15 15 15
Jadi: x1 = 0, x2 = 1, x3 = 2
Tugas
Selesaikan persamaan linier simultan dibawah ini dengan Algorithma
Eliminasi Gauss dan Eliminasi Gauss Jordan.
Selesaikan menggunakan Excel.
Algoritma Gauss Seidel
C1
x1
a11
Algoritma Gauss Seidel
4. Menghitung x3
Baris 3 a31x1 + a32x2 + a33x3 + ... +
a3nxn = C3
a33x3 = C3 – a31x1 – a32x2 – … – a3nxn
C3 a31 x1 a32 x2
x3
a33
Algoritma Gauss Seidel
x i baru x i (lama)
xi a 100%
x i baru
x n baru x n(lama)
xn a 100%
x n baru
8. Iterasi diteruskan sampai didapat |a| < |s|
Algoritma Gauss Seidel (Ex.)
Diketahui SPL:
x1 + 7x2 – 3x3 = –51 1 7 3 x1 51
4x1 – 4x2 + 9x3 = 61
4 4 9 x
2 61
12x1 – x2 + 3x3 = 8 12 1 3 x3 8
dan a = 5 %
Algoritma Gauss Seidel (Ex.)
Iterasi ke-0
x 1 = x2 = x3 = 0
Iterasi ke-1
51 61 4 x1 61 4 51
x1 51 x2 66,25
1 4 4
8 12 x1 x2 8 51 66,25
x3 184,58
3 3
Algoritma Gauss Seidel (Ex.)
Iterasi ke-2
Iterasi ke-3
51 7 x2 3x3 51 71366,55 3 3407,78
x1 19840,19
1 1
61 4 x1 9 x3 61 4 19840,19 9 3407,78
x2 27522,94
4 4
8 12x1 x2 8 12 19840,19 27522,94
x3 70189,11
3 3
Perhitungan x1, x2, x3 diteruskan sampai semua |a| < |s|