Professional Documents
Culture Documents
wxmx 1/1
Mathematics Practical
4 −2 5
1 10
123
determinant(A);
2nd.wxmx 1 / 2
Question 2: Convert matrix into echelon form and find its rank.
A:matrix([1,1,−1],[2,−1,1],[−1,2,2]);
11
2 −1 −1 2
eA:echelon(A);
1 1 −1
0 1 −1
0 0 1
B:copymatrix(A);
1 1
2 −1
−1 2
B[3]:B[1]+B[3] $B;
1 1
2 −1
0 3
B[2]:−2·B[1]+B[2] $B;
1 1
0 −3
0 3
B[3]:B[3]+B[2] $B;
1 1
0 −3
0 0
B[2]:B[2]·−1/3 $B;
1 1 −1
0 1 −1
0 0 4
B[3]:B[3]·1/4 $B;
1 1 −1
0 1 −1
0 0 1
2nd.wxmx 2/2
rank(B);
3
3rd.wxmx 1/1
linsolve([w+x+2·y=1,x+(4/3)·y−(1/3)·z=4/3,y+8·z=−17,z=−2],[w,x,y,z]);
[w=1,x=2,y=−1,z=−2]
2/2
4th.wxmx
2 −1 0
1 2
1 −1 −1
−2 −4
2 −1 2
−1 0
D:Ab;
11 2
0 −1
2 −1 0 1
2
−1 −2
1 −1 −4
2 −1 2 −1
0
D[2]:D[2]−2·D[1];
[0,−3,−4,1,4]
D[3]:D[3]−D[1];
[0,−2,−3,−2,−3]
D[4]:D[4]−2·D[1];
[0,−3,−2,−1,2]
1/2
[0,0,2,−2,−2]
D[3]:D[3]·(−3);
4th.wxmx
[0,0,1,8,17
]
D[1]:D[1]−D[2];
D[4]:D[4]−2·D[3];
[0,0,0,−18,−36]
D[2]:D[2]−(4/3)·D[3];
[0,1,0,−11,−24]
D[1]:D[1]−(2/3)·D[3];
[1,0,0,−5,−11]
D[4]:D[4]/(−18);
[0,0,0,1,2]
D[3]:D[3]−8·D[4];
[0,0,1,0,1]
D[2]:D[2]+11·D[4];
[0,1,0,0,−2]
D[1]:D[1]+5·D[4];
[1,0,0,0,−1] D;
1000 −1
0100 −2
0010 1
0001 2
2/2
5th.wxmx
0 errors, 0
warningsdisplay2d:true;
m:mcombine([matrix(v1),matrix(v2),matrix(v3)]);
1 23 true2 1
−2
1 −4 1
length(transpose(m));
3 rank(m);
3 s:columnspan(m);
1 2 3
columnspan2 1 −2
1 −4 1
[s1,s2,s3]:5 , span="[";
[5,5,5] v:[7,1,9];
[7,1,9] t:transpose(v);
arraym:addcol(m,t);
2 3 7
1/2
1 −2 1 −4 1 9
5th.wxmx
rank(m); 3
rank(arraym);
3
2/2
6th.wxmx
2 2 1
1 3 1[evals,evecs =]
1 2 2
1 1 0
1 0 1
1 −1
−2
1/2
2 Pi 2
Pi 0
Pi 0 Pi
3 2
−x +7 x −11 x+5
−B^^3+7·B^^2−11·B+5·ident(3);
6th.wxmx
0 0 0
0 0 0
0 0 0
7th.wxmx 1/1
2 2 2
d 22 2 d 2 2 2 d 2 2 2
(x y z )+ (x y z )+ (x y z )
2 2 2 dz dy dx
ev(%,diff);
2 2 2 2 2 2
2 y z +2 x z +2 x y