{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab2 - Exercise 1 a B=[2-1 4-5 27-1 3-2-1-26 0 1 5-6 15 3-8...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Exercise 1 a) B=[2 -1 4 -5 27; -1 3 -2 -1 -26; 0 1 5 -6 15; 3 -8 1 0 53] B = 2 -1 4 -5 27 -1 3 -2 -1 -26 0 1 5 -6 15 3 -8 1 0 53 b) B([1 2],:)=B([2 1],:) Switches positions of row 1 and 2 B(2,:)=B(2,:)+2*B(1,:) Multiplies row 1 by 2 and adds to row 2 B(4,:)=B(4,:)+3*B(1,:) Multiplies row 1 by 3 and adds to row 4 B([2 4],:)=B([4 2],:) Switches position of row 2 and 4 B(3,:)=B(3,:)+B(4,:) Adds row 3 to row 4 B(3,:)=B(3,:)-B(2,:) Subtracts row 2 from row 3 B(4,:)=B(4,:)-5*B(2,:) Multiplies row 2 by 5 and subtracts from row 4 B(3,:)=B(3,:)/10 Divides row 3 by 10 B(4,:)=B(4,:)-25*B(3,:) Multiplies row 3 by 25 and subtracts from row 4 B = -1 3 -2 -1 -26 0 1 -5 -3 -25 0 0 1 -3/10 4 0 0 0 31/2 0 c)x 1 =3; x 2 =-5, x 3 =4, x 4 =0 Exercise 2 a) A=[-2 1 9 1; 3 3 -4 2; 1 4 5 5] A = -2 1 9 1 3 3 -4 2 1 4 5 5 b) A([1 3],:)=A([3 1],:) Switches positions of row 1 and 3 A(2,:)=A(2,:)-3*A(1,:) Multiplies row 1 by 3 and subtracts from row 2 A(3,:)=A(3,:)+2*A(1,:) Multiplies row 1 by 2 and subtracts from row 3 A(2,:)=A(2,:)/-9 Divides row 2 by 9 A(3,:)=A(3,:)-9*A(2,:) Multiplies row 2 by 9 and subtracts from row 1 A = 1 4 5 5 0 1 19/9 13/9 0 0 0 -2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
c) This matrix is inconsistent because there are no solutions as given by the reduced matrix. Exercise 3
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}