mt1C-sol

mt1C-sol - Midterm 1, CS 257 Group C March 1, 2005 Time:...

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

View Full Document Right Arrow Icon
Midterm 1, CS 257 Group C March 1, 2005 Time: 9:45AM-10:45AM Name: . NetID: . Signature: . No book or notes 9 Questions, 9 pages: (125 points) All questions are 10 points, unless otherwise stated. 1. What does the MATLAB command eye(3)-ones(3) return? 1 0 0 0 1 0 0 0 1 - 1 1 1 1 1 1 1 1 1 = 0 - 1 - 1 - 1 0 - 1 - 1 - 1 0 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
2. For A = [8 7; 6 5; 4 3; 2 1] and b = [1; 2; 3; 4] , complete the following MATLAB code to obtain the vector x that minimizes min x k A x - b k 2 [s,t]= qr(A) x = t\(s’*b) 2
Background image of page 2
3. (15 points) Without using the LU factorization, determine the inverse of: L = 1 0 0 0 3 1 0 0 0 3 1 0 0 0 3 1 Show your work. L = 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 - 0 0 0 0 - 3 0 0 0 0 - 3 0 0 0 0 - 3 0 L - 1 = 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 + 0 0 0 0 - 3 0 0 0 0 - 3 0 0 0 0 - 3 0 + 0 0 0 0 - 3 0 0 0 0 - 3 0 0 0 0 - 3 0 2 + 0 0 0 0 - 3 0 0 0 0 - 3 0 0 0 0 - 3 0
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

mt1C-sol - Midterm 1, CS 257 Group C March 1, 2005 Time:...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online