Anda di halaman 1dari 1

>> GaussElim(a,b)

The system b4 pivoting, A | b


ans =
2
4
-2
-2
-4
1
2
4
-3
5
-3
-3
8
-2
7
-1
1
6
-3
7
The system after pivoting, A | b
ans =
-3
-3
8
-2
7
1
2
4
-3
5
2
4
-2
-2
-4
-1
1
6
-3
7
==================================================
The system b4 pivoting, A | b
ans =
-3.0000 -3.0000
8.0000 -2.0000
7.0000
0
1.0000
6.6667 -3.6667
7.3333
0
2.0000
3.3333 -3.3333
0.6667
0
2.0000
3.3333 -2.3333
4.6667
The system after pivoting, A | b
ans =
-3.0000 -3.0000
8.0000 -2.0000
7.0000
0
2.0000
3.3333 -3.3333
0.6667
0
1.0000
6.6667 -3.6667
7.3333
0
2.0000
3.3333 -2.3333
4.6667
==================================================
The system b4 pivoting, A | b
ans =
-3.0000 -3.0000
8.0000 -2.0000
7.0000
0
2.0000
3.3333 -3.3333
0.6667
0
0
5.0000 -2.0000
7.0000
0
0
0.0000
1.0000
4.0000
The system after pivoting, A | b
ans =
-3.0000 -3.0000
8.0000 -2.0000
7.0000
0
2.0000
3.3333 -3.3333
0.6667
0
0
5.0000 -2.0000
7.0000
0
0
0.0000
1.0000
4.0000
==================================================
The system b4 back-substitution , A | b
ans =
-3.0000 -3.0000
8.0000 -2.0000
7.0000
0
2.0000
3.3333 -3.3333
0.6667
0
0
5.0000 -2.0000
7.0000
0
0
0
1.0000
4.0000
==================================================
ans =x1
x2
x3
x4
1.0000
2.0000
3.0000
4.0000

Anda mungkin juga menyukai