{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Sp11_Quiz4_soln

# Sp11_Quiz4_soln - EGN 3420 Quiz 4 solution Sp 2011 Problem...

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: EGN 3420 Quiz 4 solution Sp 2011 Problem 1 (5 pts) , Given the system of equations x + y + z = 0 2x + z = 1 2y + z = ‐1 y ‐ z = 2 x ‐ Find the Echelon form of | and choose the correct answer from the choices below. a) b) c) d) The system of equations are inconsistent The system of equations are consistent with a unique solution x=1, y=1, z=1 The system of equations are consistent with an infinite number of solutions The system of equations are consistent with a unique solution x=1, y=0, z=‐1 1 1 1 0 1 1 1 0 2 0 1 1 0 2 1 1 ( A | b) 0 2 1 1 0 2 1 1 1 1 1 2 0 2 2 2 1 1 1 0 1 0 1 1 1 0 0 2 1 1 0 0 2 1 1 0 Divide last row by -2 and swap with 2nd row 0 1 0 1 1 1 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 0 0 1 1 0 1 1 0 11 The equations are consistent with a unique solution. The solution is found from z 1 y z 1 y 1 1 y 0 x y z 0 x 0 1 0 x 1 0 1 1 1 0 1 1 0 0 0 11 Problem 2 Consider the Matlab script file A=[1 2; 3 4] for i=1:3 A=2*A if A(1,1)==8 x=1 else x=0 end end Running the script file results in a) an error message b) x=0 c) x=1 d) x=2 e) x=3 f) none of the above A = 1 2 3 4 A = 2 4 6 8 x = 0 A = 4 8 12 16 x = 0 A = 8 16 24 32 x = 1 (5 pts) ...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online