DeGracia_Miguel_19481379_lab9

# DeGracia_Miguel_19481379_lab9 - Miguel De Gracia 19481379...

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

%% Miguel De Gracia. 19481379. Section 22. Lab Assignment 9. % %% Problem 1a % % Chapter 2 Problem 35a % A=[2 1;3 -9]; b=[5;2]; X=A\b; inv(A)*A; %This produces the identity matrix signifying that we are correct. % %% Problem 1b % % Chapter 2 Problem 35b % A=[-8 -5;-2 7]; b=[4;10]; X=A\b; inv(A)*A; %This produces the identity matrix signifying that we are correct. % %% Problem 1c % % Chapter 2 Problem 35c % A=[12 -5 0;-3 4 7;6 2 3]; b=[11;-3;22]; X=A\b; inv(A)*A; %This produces the identity matrix signifying that we are correct. % %% Problem 1d % % Chpater 2 Problem 35d % A=[6 -3 4;12 5 -7;-5 2 6]; b=[41;-26;14]; X=A\b; inv(A)*A; %This produces the identity matrix signifying that we are correct. % %% Problem 2 % type LinearEquationTest t A=[-2 1;1 1]; b=[-3;3]; LinearEquationTest(A,b) L A=[-2 1;-2 1]; b=[-3;1]; LinearEquationTest(A,b) L A=[-2 1;-6 3]; b=[-3;-9]; LinearEquationTest(A,b)

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

View Full Document
L A=[1 1;1 -1;0 1]; b=[1;0;1]; LinearEquationTest(A,b) L A=rand(3,4); b=rand(3,1); LinearEquationTest(A,b)
This is the end of the preview. Sign up to access the rest of the document.

### Page1 / 4

DeGracia_Miguel_19481379_lab9 - Miguel De Gracia 19481379...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online