e6exam1secAsolnsW09

e6exam1secAsolnsW09 - Engineering 6 Winter 2009 Midterm...

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

View Full Document Right Arrow Icon
Engineering 6, Winter 2009 Midterm Solutions Lecture Section A (TTh 4:40-6:00) Regrade requests must be submitted in writing to Dr. Lagerstrom no later than the lecture section on Thursday, Feb. 26. Regrades will only be considered in cases where it looks like the grader missed something. That is, requests along the lines of "I think I deserve more points" will not get very far, because the the grading scale on each problem was applied consistently for all students. Note also : Your exam may have been photocopied before it was returned, so please don't risk your engineering career here at UCD by changing an answer and submitting it for a regrade. Exam Version A (Version A is indicated by the first problem being worth 18 points; the first problem on Version B is worth 24 points.) Problem 1. (18 points total) (a) Binary number system (4 points per part): (i) Write 101110 2 in base-10 notation, showing your work. 1x32 + 0x16 + 1x8 + 1x4 + 1x2 + 0x1 = 46 (ii) Write 59 10 in base-2 notation, showing your work. 59 = 1x32 + 1x16 + 1x8 + 0x4 + 1x2 + 1x1, or 111011 (b) Reduce the following answers to the proper number of significant digits, rounding as needed (2 points per part): (i) 532.235 + 439.91 + 16.83 = 988.975 988.98 (ii) (5.72 min)(60 secs/min) = 343.2 seconds 343 (because 60 secs/min is an exact conversion factor) (iii) 4.963/191 = 0.02598429 0.0260 (c) Significant digits (2 points per part): (i) How many significant digits does 5.90 x 10 3 have? 3 sig digits (ii) How many significant digits does 4700 have? Can’t tell for sure—either 2, 3, or 4
Background image of page 1

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

View Full DocumentRight Arrow Icon
Problem 2. (24 points total) (a) Convert the following to Matlab assignment statements. Use built-in functions where possible. Assume all variables are scalars. (3 points per part.) (i) fg x d c bx ax y + + + = 3 2 / y = (a*x^2 + b*x + c)/(d/x^3 + f*g) (ii) 3 1 - = wz k T L L = T*(1 – k/(w*z))^3 Note: the parentheses around the (w*z) are required. (iii) ) (log ) 2 (sin 10 2 w R t h = h = (sin(2*t))^2*R*log10(w) (b) Give the Matlab response (what it would display) to the following sequences of commands. (3 points per part.) Grading note: okay just to display the number results, not the “y =”, etc. Results (i) x = [7 4 9 2 9 8 10 5 12]; y = x(4) z = [4 y] y = 2 z = 4 2 ___________________________________________________________________________ (ii) y = [8+2j 2-3j]; L = length(y) y' L = 2 ans = Note: “i” may be written as “j”, and the 0’s 8.0000 - 2.0000i are optional. 2.0000 + 3.0000i ___________________________________________________________________________ (iii) x = [7 4 9 2 9 8 10 5 12]; x(2:3:9) ans = 4 9 5
Background image of page 2
(iv) x = logspace(3,7,5) x = 1000 10000 100000 1000000 10000000 Note: exponential notation okay too, i.e., 1.0e+003, 1.0e+004, . .., 1.0e+007 ____________________________________________________________________________ (v) A = [5 8; 4 3; 9 6]; C = A(:,2) C = Note: this must be written in column form. 8
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.

This note was uploaded on 10/23/2010 for the course ENG 6 taught by Professor Largerstrom during the Fall '08 term at UC Davis.

Page1 / 12

e6exam1secAsolnsW09 - Engineering 6 Winter 2009 Midterm...

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