Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

SOAL 1

A=[2 -3 2;-1 2 -3;1 1 -1]

A=

-3

-1

-3

-1

B=[-6;2;0]

B=

-6
2
0

>> X=A\B

X=

-1
2
1

SOAL 2
A=[4 -2 1;-2 4 -2;1 -2 4]

A=

-2

-2

-2

-2

B=[11;-16;17]

B=

11
-16
17

>> X=A\B

X=
1.0000
-2.0000
3.0000

SOAL 3

a=[-6 5 0 0 0;1 -6 5 0 0;0 1 -6 5 0;0 0 1 -6 5;0 0 0 1 -6]


a=
-6

-6

-6

-6

-6

b=[-0.-5;0;0;0;0]

b=
-5
0
0
0
0

>> x=a\b
x=
0.9997
0.1997
0.0397
0.0077
0.0013

You might also like