Professional Documents
Culture Documents
Chapter 4sec
Chapter 4sec
Chapter 4sec
Linear Algebra
In[2]:= Question : -
Table[If[i ⩵ j, i, If[i > j, 0, 1]], {i, 10}, {j, 10}] // MatrixForm
Out[2]//MatrixForm=
Question :
{{- 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1}, {0, - 2, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1},
{0, 0, - 3, - 1, - 1, - 1, - 1, - 1, - 1, - 1}, {0, 0, 0, - 4, - 1, - 1, - 1, - 1, - 1, - 1},
{0, 0, 0, 0, - 5, - 1, - 1, - 1, - 1, - 1}, {0, 0, 0, 0, 0, - 6, - 1, - 1, - 1, - 1},
{0, 0, 0, 0, 0, 0, - 7, - 1, - 1, - 1}, {0, 0, 0, 0, 0, 0, 0, - 8, - 1, - 1},
{0, 0, 0, 0, 0, 0, 0, 0, - 9, - 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0, - 10}}
In[5]:= (B = IdentityMatrix[2]);
(A = {{1, 2}, {3, 4}});
M = ArrayFlatten[{{A, B}}];
% // MatrixForm
Out[8]//MatrixForm=
1 2 1 0
3 4 0 1
In[10]:= M // MatrixForm
Out[10]//MatrixForm=
1 2 1 0
0 -2 -3 1
In[17]:= A // MatrixForm
Out[17]//MatrixForm=
1 7 5 0
5 9 2 1
1 4 3 2
4 9 3 0
In[18]:= (B = IdentityMatrix[4])
Out[18]=
Out[40]//MatrixForm=
353 873 17 875 5897 325 1 851 127 6 095 669 45 985 123 2 803 063
- - - - -
19 321 3753 19 321 139 521 667 57 963 521 667 521 667
51 282 2339 3401 40 267 662 861 109 6 447 707 508 775
- - -
19 321 3753 19 321 139 521 667 57 963 521 667 521 667
2844 55 3582 9 3935 22 560 70 867 13 847
- -
19 321 417 19 321 139 57 963 19 321 57 963 57 963
1150 55 19 7324 20 030 149 680 8671
- - 1 -
139 27 139 3753 417 3753 3753
In[43]:= Det[A]
Out[43]=
334
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
1 2 3 4 5 6 7 8 9 10
57 - 7 a + 8 a2 - 71 + 11 a + 6 a2 - 35 + 5 a
, ,
5 + 5 a2 5 + 5 a2 5 + 5 a2
In[56]:= NullSpace[A]
{}
RowReduce[ArrayFlatten[{{A, b}}]] // MatrixForm
Out[56]=
{}
Out[57]=
{}
Out[58]//MatrixForm=
57-7 a+8 a2
1 0 0
5+5 a2
-71+11 a+6 a2
0 1 0
5+5 a2
-35+5 a
0 0 1
5+5 a2
6
In[59]:= Det[A]
Out[59]=
- 5 - 5 a2
In[61]:= CircleThrough[pts]
Out[61]=
Circle{1, 2}, 34
In[62]:= CircleThrough[pts];
Graphics[{%, Red, Large, Point[pts]}]
Out[63]=