Professional Documents
Culture Documents
x1 + 2 x2 + 3 x3 = 1;
2 x1 + 6 x2 + 10 x3 = 0;
3 x1 + 14 x2 + 28 x3 = - 8;
1
0
-8
Out[60]//MatrixForm=
1 2 3 1
2 6 10 0
3 14 28 - 8
2
In[61]:=
In[78]:= IdentityMatrix[3].x ⩵ c
Out[78]=
In[98]:=
ClearAll
10 x1 + x2 + x3 = 12;
2 x1 + 10 x2 + x3 = 13;
x1 + x2 + 5 x3 = 7;
ClearAll
In[111]:=
In[114]:=
In[116]:=
In[118]:=
In[120]:=
In[122]:=
In[125]:=
In[131]:=
In[133]:=
c = Take[aug, 3, - 1];
c // MatrixForm
Out[134]//MatrixForm=
1
1
1
In[136]:=
IdentityMatrix[3].x ⩵ c
Out[136]=
In[137]:=
Solve[IdentityMatrix[3].x ⩵ c]
Out[137]=
{{x1 → 1, x2 → 1, x3 → 1}}
In[334]:=
ClearAll
Out[334]=
ClearAll
7
In[355]:=
x1 + 10 x2 - x3 = 3;
2 x1 + 3 x2 + 20 x3 = 7;
10 x1 - x2 + 2 x3 = 4;
In[367]:=
Out[369]//MatrixForm=
1 10 - 1 3
0 - 17 22 1
0 - 101 12 - 26
In[370]:=
aug〚2〛 = - 1 / 17 aug〚2〛;
aug // MatrixForm
Out[371]//MatrixForm=
1 10 -1 3
22 1
0 1 - -
17 17
0 - 101 12 - 26
In[372]:=
In[375]:=
In[377]:=
In[380]:=
In[383]:=
c = Take[aug, 3, - 1];
c // MatrixForm
Out[384]//MatrixForm=
757
2018
292
1009
543
2018
In[385]:=
IdentityMatrix[3].x ⩵ c
Out[385]=
757 292 543
{{x1}, {x2}, {x3}} ⩵ , ,
2018 1009 2018
In[386]:=
Solve[IdentityMatrix[3].x ⩵ c]
Out[386]=
757 292 543
x1 → , x2 → , x3 →
2018 1009 2018
In[387]:=
ClearAll
Out[387]=
ClearAll