Sunteți pe pagina 1din 23

Palacio, Maria Nila Z.

3IE-1
Engr. Andaya

Gaussian Elimination

Note: It is just an example, you can type at the bottom the value
so you could get the answer of a 4x4 matrix and you can use
that to solve the 3x3 matrix just make it 0 or leave it blank all the
values that will not suit for a 3x3 matrix.
2x-2y+3z+4w=33
4x+3y-4z-5w=3
5x+4y+6z-2w=45
3x-5y-7z+3w=11

x y z w =

Pivot -> 2 -2 3 4 33

4 3 -4 -5 3

5 4 6 -2 45

3 -5 -7 3 11
2 -2 3 4 33

Pivot -> 0 14 -20 -26 -126

0 18 -3 -24 -75

0 -4 -23 -6 -77

2 -2 3 4 33

0 14 -20 -26 -126

Pivot -> 0 0 318 132 1218

0 0 -402 -188 -1582


2 -2 3 4 33

0 14 -20 -26 -126

0 0 318 132 1218

0 0 0 -6720 -13440

For a 3x3 matrix For a 4x4 matrix


The answer would be: The answer would be:
x= 0.1132 x= 7

y= -1.2642 y= -1

z= 0.4151 z= 3

w= 2
ix
nswer would be:
Palacio, Maria Nila Z.
3IE-1
Engr. Andaya

Gauss-Jordan Elimination

Note: It is just an example, you can type at the bottom the


value so you could get the answer of a 4x4 matrix.

2x-2y+3z+4w=33

4x+3y-4z-5w=3
5x+4y+6z-2w=45
3x-5y-7z+3w=11

x y z w =

Pivot -> 2 -2 3 4 33

4 3 -4 -5 3

5 4 6 -2 45

3 -5 -7 3 11
2 -2 3 4 33

Pivot -> 0 14 -20 -26 -126

0 18 -3 -24 -75

0 -4 -23 -6 -77

2 -2 3 4 33

0 14 -20 -26 -126

Pivot -> 0 0 318 132 1218

0 0 -402 -188 -1582


2 -2 3 4 33

0 14 -20 -26 -126

0 0 318 132 1218

Pivot -> 0 0 0 -6720 -13440


-13440 13440 -20160 0 -168000

0 -94080 134400 0 497280

Pivot -> 0 0 -2136960 0 -6410880

0 0 0 -6720 -13440

-13440 13440 -20160 0 -168000

0 -94080 134400 0 497280

Pivot -> 0 0 1 0 3

0 0 0 1 2
-13440 13440 0 0

Pivot -> 0 -94080 0 0

0 0 1 0

0 0 0 1
-13440 13440 0 0

Pivot -> 0 1 0 0

0 0 1 0

0 0 0 1

-13440 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1
-107520 1 0 0 0

94080 0 1 0 0

3 0 0 1 0

2 0 0 0 1
-107520 X= 7

-1 Y= -1

3 Z= 3

2 W= 2

-94080

-1

2
7

-1

2
Palacio, Maria Nila Z.
3IE-1
Engr. Andaya

LU DECOMPOSITION

2 -2 3 4 33

4 3 -4 -5 3

5 4 6 -2 45

3 -5 -7 3 11

a= 2 k= -1

b= 4 c= 7

d= 5 e= 9

g= 3 h= -2

Y₁= 16.5 1 -1

Y₂= -9 0 1

Y₃= 3.8301886792 0 0
Y₄= 2 0 0
SITION

l= 1.5

n= -1.4285714286

f= 11.3571428571

i= -14.3571428571

1.5 2

-1.4285714286 -1.8571428571

1 0.4150943396
0 1
0 0 0

c 0 0

e f 0

h i j

m= 2

o= -1.8571428571

p= 0.4150943396

j= -0.7547169811

X₁=
Y₁= 16.5
X₂=
Y₂= -9
X₃=
Y₃= 3.8301886792
X₄=
Y₄= 2
1 k l m

0 1 n o

0 0 1 p

0 0 0 1

2 0 0 0

4 7 0 0

5 9 11.357142857 0

3 -2 -14.357142857 -0.7547169811

-1

3
2
a ak al am

b bk+c bl+nc bm+co

d dk+e dl+en+f dm+eo+fp

g gk+h gl+hn+i gm+ho+ip+j

Y₁= 33

Y₂= 3

Y₃= 45

Y₄= 11

S-ar putea să vă placă și