eng77-Spring_2006-mt2-Segapunta-soln

eng77-Spring_2006-mt2-Segapunta-soln - Page 1 of 9 E77...

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

View Full Document Right Arrow Icon
Page 1 of 9 E77 Midterm 2/Student ID: ______________________________ UNIVERSITY OF CALIFORNIA COLLEGE OF ENGINEERING E77: INTRODUCTION TO COMPUTER PROGRAMMING FOR SCIENTISTS AND ENGINEERS Spring 2006 Second Midterm Exam—April 12, 2006 [45 points = 45 minutes] Question Points Grade A 15 B 15 C 8 D 3 E 4 TOTAL 45 Notes: 1. Write your name below and on the top right corner of every page. 2. Please give all your answers only in the spaces provided. 3. You may NOT ask any questions during the exam. 4. You may NOT leave the exam room before the exam ends. Your PRINTED NAME + signature : ______________________________________________ Your E77 LECTURE SECTION 1 or 2 (Circle your section #) Circle your Lab Section (where the graded midterms will be returned). #11: MW 8-10 (Etch) #12: MW 10-12 (Etch) #13: MW 2-4 (Etch) #14: MW 4-6 (Etch) #15: TuTh 8-10 (Etch) #16: TuTh 10-12 (Etch) #17: TuTh 12-2 (Etch) #18: TuTh 2-4 (Etch) #19: TuTh 4-6 (Etch) #20: MW 8-10 (Latimer) #21: TuTh 8-10 (Latimer)
Background image of page 1

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

View Full DocumentRight Arrow Icon
Page 2 of 9 E77 Midterm 2/Student ID: ______________________________ A. Linear Algebra (15 points ) 1. (+3) 451 12 15 8 xy 0 += = What is the determinant of the coefficient matrix of these equations? __ , det( ) ______________ AA ⎛⎞ == ⎜⎟ ⎝⎠ A= [-4,5;12,-15] det(A) = 0 Does this set of equations have a unique solution? Y E S N O NO 2. (+4) For what value of a will the following set have a solution in which both x and are nonzero? Find the relationship between y x and y 40 36 0 xa y = ______, ___________, ____________ ax y = a=8; x=2*y; y=0.5*x 3. (+4) a. (+0.5) What MATLAB function calculates the determinant of a matrix A? _____ det(A) ____________________________________________________________ b. (+1) Does the matrix A above have to be square? (Circle one choice) YES NO YES c. (+1) What does the backslash (\) operator do:
Background image of page 2
Page 3 of 9 E77 Midterm 2/Student ID: ______________________________ 1) For an n -by- n system of linear equations? _ Solves for a linear equation defined by A*X = B; X=A\B 2) For an m -by- n ( m>n ) system of linear equations? _ Solves using least squares the over-determined system: A*X=B; X=A\B d. (+1) What MATLAB function calculates the inverse of a matrix?
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

eng77-Spring_2006-mt2-Segapunta-soln - Page 1 of 9 E77...

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