Test 2 Solutions - Python Edition
|
|
- Esmond Blankenship
- 5 years ago
- Views:
Transcription
1 'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 103L Fall 2017 Test 2 Solutions - Python Edition Michael R. Gustafson II Name (please print) NET ID (please print): In keeping with the Community Standard, I have neither provided nor received any assistance on this test. I understand if it is later determined that I gave or received assistance, I will be brought before the Undergraduate Conduct Board and, if found responsible for academic dishonesty or academic contempt, fail the class. I also understand that I am not allowed to speak to anyone except the instructor about any aspect of this test until the instructor announces it is allowed. I understand if it is later determined that I did speak to another person about the test before the instructor said it was allowed, I will be brought before the Undergraduate Conduct Board and, if found responsible for academic dishonesty or academic contempt, fail the class. Signature: Notes You will be turning in each problem in a separate pile. Most of these problems will require working on separate pieces of paper - Make sure that you do not put work for more than any one problem on any one piece of paper. For this test, you will be turning in four different sets of work. Again, Please do not work on multiple problems on the same sheet of paper. Also - please do not put work for one problem on the back of another problem. Be sure your name and NET ID show up on every page of the test. If you are including work on extra sheets of paper, put your name and NET ID on each and be sure to staple them to the appropriate problem. Problems without names will incur at least a 25% penalty for the problem. This first page should have your name, NET ID, and signature on it. It should be stapled on top of and turned in with your submission for Problem I. You will not need and can not use a calculator on this test. For hand calculations you will instead show the set-up of the calculation you need to perform but will not reduce it. You can leave powers, roots, products, sums, differences, and quotients unevaluated - for example, (3)(2) + (8)(11) (6)(24) A (8) 2 (4) 2 + (2) 2 (7) 2 should be left just like that. You will be asked to write several lines of code on this test. Make sure what you write is code and not mathematics. Be very careful with any symbols you use. You do not need to put the honor code statement in your codes. The honor code statement on this page and your NET ID on each problem stands in for that. You do not need to number your lines of code. Please staple in the top left corner of the page. Also, please do not put work too close to the top left corner of the page!
2 Name (please print): Community Standard (print NET ID): Problem I: [25 pts.] This again? (1) Given the following matrices: M [ ] N [ ] Oh Write the results of the following Python commands in the spaces below. (a) A M@Oh (f) F M>1 (b) B N**2 (g) G np.where(m>1) (c) C N@N (h) H M[np.where(M>1)] (d) D N.reshape(1, -1) (i) I np.block([[n],[n]]) (e) E np.sum(oh) (j) J (N!0) & (N>2) (2) Show what P and R would be after the following command: (P, R) np.meshgrid([1, 2, 3], [4, 5]) (3) Show what S, T, U, and V and would be after the following commands: S np.array([[5, 2, 3], [1, 6, 8]]) T 2 V [] for U in S: TT+1 V+[max(U)]
3 A [[-1 13] [ 8 2]] B [[ 9 16] [ 0 1]] C [[ 9 16] [ 0 1]] D [[ ]] E 2 F [[ True True False] [ False True False]] G (array([0, 0, 1], dtypeint64), array([0, 1, 1], dtypeint64)) H [4 6 5] I [[3 4] [0 1] [3 4] [0 1]] J [[ True True] [False False]] P [[1 2 3] [1 2 3]] R [[4 4 4] [5 5 5]] S [[5 2 3] [1 6 8]] T 4 U [1 6 8] V [5, 8]
4 Name (please print): Community Standard (print NET ID): Problem II: [25 pts.] Where is everything? (1) Given the equation: and the two graphs: y(x) e x x 2 + 8x 5 x y y x x which are of the same function but with two different domains, write MATLAB code to accomplish the tasks below. (a) Write code guaranteed to find the two positive values of x where y(x) 0. Note that the root at x 0 is not included in these two. Call these values x1 and x2 (b) Write code guaranteed to find the value and location of the local minimum of the function on the left side of each graph. Assign the value of the minimum to ymin and the location of the minimum to xminloc. (c) Write code guaranteed to find the value and location real global maximum value of the function. Assign the value of the minimum to ymax and the location of the minimum to xmaxloc. (d) From the graphs, you can see that y(x) 2 at two locations. Write code guaranteed to find both and assign the locations to x2a and x2b from left to right, respectively. (2) Given the function of a surface: f(x,y) x 2 + x y + y 2 3x + 2y + cos(x) + sin(y) (a) Generate a surface plot of f(x,y) as a function of x and y. x and y should span the domain from -8 to 8 and there should be 50 nodes in each direction. You do not need to label, title, or save this plot. (b) Determine which of the 2500 modes is closest to and find the x, y, f(x,y), and element values at that grid point. Display this information in a manner similar to the following (numerically incorrect) example (which uses %+0.3e for all scientific notation numbers, as do all in this problem): Max node: f(-7.674e+00,-7.347e+00) e+02 (c) Determine which of the 2500 nodes is closest to and find the x, y, and f(x,y) values at that grid point. Display this information in a manner similar to the following (numerically incorrect) example: Min node: f(+2.976e+00,-2.022e+00) e+00 (d) Determine the exact location of the minimum of the f(x, y) function. Use the information gained above in (c) as an initial guess. Display this information in a manner similar to the following (numerically incorrect) example: Min val: f(+2.849e+00,-2.015e+00) e+00 (e) Determine the S t value for the 2500 values of f(x,y) and store it in a variable called St.
5 1 # not required 2 import numpy as np 3 import scipy.optimize as opt 4 5 def y(x): return np.exp(-x) - x**2 + 8 * x - 5 * np.sqrt(x) # %% a - multiple bracket possibilities 8 x1 opt.brentq(y, 0.5, 0.6) 9 x2 opt.brentq(y, 5, 6) # %% b - multiple bounday possibilities 12 xminloc opt.fminbound(y, 0, 1) 13 ymin y(xminloc) # %% c - mutiple bracket possibilities; be sure to flip sign! 16 xmaxloc opt.fminbound(lambda x: -y(x), 2, 4) 17 ymax y(xmaxloc) # %% d - mutiple bracket possibilities 20 x2a opt.brentq(lambda x: y(x) - 2, 1, 2) 21 x2b opt.brentq(lambda x: y(x) - 2, 5, 6) 1 # not required 2 import numpy as np 3 import scipy.optimize as opt 4 import matplotlib.pyplot as plt 5 from mpl_toolkits.mplot3d import axes3d 6 7 # %% (a) 8 def f(x, y): return x**2 + x * y + y**2-3 * x + 2 * y + np.cos(x) + np.sin(y) 9 10 (x, y) np.meshgrid(np.linspace(-8, 8, 50), 11 np.linspace(-8, 8, 50)) 12 fig plt.figure(1) 13 fig.clf() 14 ax fig.add_subplot(111, projection ³3d ³) 15 ax.plot_surface(x, y, f(x, y)) # %% (b) 18 fvals f(x, y) 19 fmax np.max(fvals) 20 maxdex np.where(fvals fmax) 21 print( ³Max node: f({:+0.3e},{:+0.3e}) {:+0.3e} ³.format( 22 x[maxdex][0], y[maxdex][0], fmax)) # %% (c) 25 fmin np.min(fvals) 26 mindex np.where(fvals fmin) 27 print( ³Max node: f({:+0.3e},{:+0.3e}) {:+0.3e} ³.format( 28 x[mindex][0], y[mindex][0], fmin)) # %% (d) 31 rloc opt.fmin(lambda r: f(r[0], r[1]), [x[mindex][0], y[mindex][0]]) 32 fval f(*rloc) 33 print( ³Min val: f({:+0.3e},{:0.3e}) {:+0.3e} ³.format( 34 rloc[0], rloc[1], fval)) # %% (e) 37 St np.sum((fvals - np.mean(fvals))**2)
6 Name (please print): Community Standard (print NET ID): Problem III: [25 pts.] Fall & Spring(s) (1) Assume you have the following equations for a system: Hr Is + J Kr + Ls + M 0 and assuming H through M are known constants while r and s are your unknowns, (a) Fill in the following framework for a linear algebra system (there are six total blanks): [A]{x} {b} [ ] [ ] [ ] r s (b) By hand, determine a formula for the determinant of the coefficient matrix, A. (c) By hand, determine a formula for the determinant of the inverse of the coefficient matrix, A 1. (d) By hand, determine solutions to the vector of unknowns r and s in terms of known values H through M. (2) Three masses M i are held apart at (unknown) positions x i between two walls by a series of large springs with known spring constants K 1 through K 4. There are known external forces F i acting on each of the masses. x 1 x 2 x 3 F 1 F 2 F 3 M 1 M 2 M 3 K 1 K 2 K 3 K 4 The equilibrium equations for the positions of the masses as functions of the applied forces are: (K 1 + K 2 )x 1 F 1 + K 2 x 2 (K 2 + K 3 )x 2 F 2 + K 2 x 1 + K 3 x 3 (K 3 + K 4 )x 3 F 3 + K 3 x 2 (a) Fill in the following framework for a linear algebra system that could be used to solve for the positions (x 1, x 2, and x 3 ); there are 12 total blanks: x 1 x 2 x 3 (b) Assuming you know that K 1 K 2 K and F 1 F 2 F , write code that will allow you to solve for and plot the values of x 2 for 200 linearly spaced values of K 4 between 500 and Give your graph proper axis labels and use a dashed blue line. You may assume the code clear; K1 1000; K21000; K31000; F12000; F22000; F32000; is already written. (c) Assume your system measurements have six significant figures. It turns out the condition number of your coefficient matrix, based on the 2-norm, is 5.05 when K What does this mean for the solutions to your linear algebra problem when K ?
7 (1) (a) [ ][ ] H I r K L s [ ] J M (b) A (H)(L) (K)( I) (c) Note the prompt - By hand, determine a formula for the determinant of the inverse of the coefficient matrix, A 1. I meant to ask for the inverse...if people gave the determinant of the inverse, that works, but ends up being more complicated [ ] L I [ A 1 K H L I ] K H A 1 [ L K I H ] ( L ) ( H ) ( I )( ) K 1 (d) [ ] [ r L s K I H ] [ ] [ J LJ IM ] JK HM M (2) (a) K 1 + K 2 K 2 0 x 1 K 2 K 2 + K 3 K 3 x 2 0 K 3 K 3 + K 4 x 3 F 1 F 2 F 3 (b) 1 import numpy as np 2 import matplotlib.pyplot as plt 3 4 K1 1000; K2 1000; K3 1000; F1 2000; F2 2000; F # %% Start here 7 N K4 np.linspace(500, 2500, N) 9 x2 np.zeros(n) 10 for k in range(n): 11 A np.array( 12 [[K1 + K2, -K2, 0], [-K2, K2 + K3, -K3], [0, -K3, K3 + K4[k]]]) 13 # fine if calculated before loop since constant 14 b np.array([[f1], [F2], [F3]]) 15 MyPos np.linalg.solve(a, b) 16 x2[k] MyPos[1] # fine if other values also stored elsewhere plt.figure(1) 19 plt.clf() 20 plt.plot(k4, x2, ³b-- ³) 21 plt.xlabel( ³ K_4 ³) 22 plt.ylabel( ³ x_2 ³) (c) Since log 10 (5.05)is between 0 and 1, the solutions will have between 0 and 1 fewer digits of precision, so between 5 and 6 digits.
8 Name (please print): Community Standard (print NET ID): Problem IV: [25 pts.] Under Pressure This problem is adapted from Chapra The dependent variable has been transformed to something called LP versus the original p. The Antoine equation describes the relation between vapor pressure and temperature for pure components as LP A B C + T where LP is related to the pressure, T is temperature, and A, B, and C are component-specific constants. Use MATLAB to determine the best values for the constants for carbon monoxide based on the following measurements where you may assume the following lines of code are given: T np.array([50.00, 60.00, 70.00, 80.00, 90.00,100.00,110.00,120.00,130.00]) LP np.array([ 4.40, 7.74, 9.82, 11.29, 12.34, 13.12, 13.77, 14.22, 14.69]) Write the rest of the code to: (1) Determine the coefficients A, B, and C that give the mathematically best version of the Antoine equation for this data set. At the end of this part of the code, you should have variables named A, B, and C. Of the three coefficients, in looking at how the formula changes with T, you should be able to come up with a guess for A based on the data. Describe your process for making a guess of A. Use 50 as an initial guess for B and -2 as an initial guess for C. (2) Determine the r 2 value for this fit and call it r2a for Antoine. (3) Ask the user for a single integer called Ord between 1 and 8. Keep asking the user for an input until the user correctly gives a single integer with a value between 1 and 8 (inclusive). (4) Determine the coefficients for a polynomial fit or order Ord. Store them in a variable called Coefs2. (5) Determine the r 2 value for this polynomial fit and call it r2p for Polynomial. (6) Make a graph that has the original data points as black circles, the Antoine equation model as a solid blue line that uses 200 values of T that span the domain of the original data set, and the polynomial fit as a dashed red line that also uses 200 values of T that span the domain of the original data set. Put proper axis labels on this graph along with a meaningful legend. (7) Print a statement about which fit was mathematically better. Your program should either say: Antoine fit is better: r29.993e-01 vs e-01 or Order 4 polynomial fit is better: r29.997e-01 vs e-01 where you need to indicate the order of the polynomial, or Fits have same r29.993e-01 depending on which is better or if they are the same. Use %0.0f for integers and %0.3e for other numbers.
9 1 import numpy as np 2 import matplotlib.pyplot as plt 3 import scipy.optimize as sp 4 5 # %% 6 T np.array([50.00, 60.00, 70.00, 80.00, 90.00, , , , ]) 8 LP np.array([4.40, 7.74, 9.82, 11.29, 12.34, 13.12, 13.77, 14.22, 14.69]) 9 10 # %% (1) 11 def yeqn(x, *coefs): 12 return coefs[0] - coefs[1] / (coefs[2] + x) cinit [15, 50, -2] 15 mycoefs sp.curve_fit(yeqn, T, LP, cinit)[0] 16 A mycoefs[0] 17 B mycoefs[1] 18 C mycoefs[2] # %% (2) 21 St np.sum((lp - np.mean(lp))**2) 22 Sr np.sum((lp - yeqn(t, *mycoefs))**2) 23 r2 (St - Sr) / St # %% (3) 26 Ord input( ³Order: ³) 27 while Ord.isnumeric() False or \ 28 np.ceil(float(ord))! np.floor(float(ord)) or \ 29 int(ord) < 1 or int(ord) > 8: 30 Ord input( ³Order: ³) Ord int(ord) 33 # %% (4) 34 P np.polyfit(t, LP, Ord) # %% (5) 37 Sr2 np.sum((lp - np.polyval(p, T))**2) 38 r22 (St - Sr2) / St # %% (6) 41 Tm np.linspace(t[0], T[-1], 1000) 42 plt.figure(1) 43 plt.clf() 44 plt.plot(t, LP, ³ko ³, 45 Tm, yeqn(tm, *mycoefs), ³b-³, 46 Tm, np.polyval(p, Tm), ³r-- ³) # %% (7) 49 if r2 > r22: 50 print( ³Antoine fit is better: r2{:0.3e} vs. {:0.3e} ³.format(r2, r22)) 51 elif r22 > r2: 52 print( ³Order {:0.0f} polynomial fit is better: ³.format(Ord) + 53 ³r2{:0.3e} vs. {:0.3e} ³.format(r22, r2)) 54 else: 55 print( ³Fits have same r2{:0.3e} ³.format(r2))
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 103L Fall Test 2 Solutions. Michael R. Gustafson II
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 103L Fall 2017 Test 2 Solutions Michael R. Gustafson II Name (please print) NET ID (please print): In keeping with the Community Standard, I have neither
More information'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 103L Fall Test 2. Michael R. Gustafson II
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 103L Fall 2017 Test 2 Michael R. Gustafson II Name (please print) NET ID (please print): In keeping with the Community Standard, I have neither provided
More informationTest 2 - Python Edition
'XNH8QLYHUVLW\ (GPXQG7UDWW-U6FKRRORI(QJLQHHULQJ EGR 10L Spring 2018 Test 2 - Python Edition Shaundra B. Daily & Michael R. Gustafson II Name (please print): NetID (please print): In keeping with the Community
More information'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 224 Spring Test II. Michael R. Gustafson II
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 224 Spring 2017 Test II Michael R. Gustafson II Name (please print) In keeping with the Community Standard, I have neither provided nor received any
More information'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. ECE 110 Fall Test I. Michael R. Gustafson II
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ ECE 110 Fall 2012 Test I Michael R. Gustafson II Name (please print) In keeping with the Community Standard, I have neither provided nor received any assistance
More information'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 224 Spring Test II. Michael R. Gustafson II
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 224 Spring 2018 Test II Michael R. Gustafson II Name (please print) In keeping with the Community Standard, I have neither provided nor received any
More information'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 53L Fall Test I. Rebecca A. Simmons & Michael R. Gustafson II
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 53L Fall 2008 Test I Rebecca A. Simmons & Michael R. Gustafson II Name (please print) In keeping with the Community Standard, I have neither provided
More informationTest II Michael R. Gustafson II
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 224 Spring 2016 Test II Michael R. Gustafson II Name (please print) In keeping with the Community Standard, I have neither provided nor received any
More information'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. ECE 110 Fall Test II. Michael R. Gustafson II
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ ECE 110 Fall 2016 Test II Michael R. Gustafson II Name (please print) In keeping with the Community Standard, I have neither provided nor received any assistance
More information'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 53L Fall Test III. Rebecca A. Simmons & Michael R. Gustafson II
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 53L Fall 2008 Test III Rebecca A. Simmons & Michael R. Gustafson II Name (please print) In keeping with the Community Standard, I have neither provided
More informationLynch 2017 Page 1 of 5. Math 150, Fall 2017 Exam 2 Form A Multiple Choice
Lynch 2017 Page 1 of 5 Math 150, Fall 2017 Exam 2 Form A Multiple Choice Last Name: First Name: Section Number: Student ID number: Directions: 1. No calculators, cell phones, or other electronic devices
More informationLynch, October 2016 Page 1 of 5. Math 150, Fall 2016 Exam 2 Form A Multiple Choice Sections 3A-5A
Lynch, October 2016 Page 1 of 5 Math 150, Fall 2016 Exam 2 Form A Multiple Choice Sections 3A-5A Last Name: First Name: Section Number: Student ID number: Directions: 1. No calculators, cell phones, or
More informationGradient Descent Methods
Lab 18 Gradient Descent Methods Lab Objective: Many optimization methods fall under the umbrella of descent algorithms. The idea is to choose an initial guess, identify a direction from this point along
More informationLab 6: Linear Algebra
6.1 Introduction Lab 6: Linear Algebra This lab is aimed at demonstrating Python s ability to solve linear algebra problems. At the end of the assignment, you should be able to write code that sets up
More informationLynch 2017 Page 1 of 5. Math 150, Fall 2017 Exam 1 Form A Multiple Choice
Lynch 017 Page 1 of 5 Math 150, Fall 017 Exam 1 Form A Multiple Choice Last Name: First Name: Section Number: Student ID number: Directions: 1. No calculators, cell phones, or other electronic devices
More informationSTUDENT NAME: STUDENT SIGNATURE: STUDENT ID NUMBER: SECTION NUMBER RECITATION INSTRUCTOR:
MA262 EXAM I SPRING 2016 FEBRUARY 25, 2016 TEST NUMBER 01 INSTRUCTIONS: 1. Do not open the exam booklet until you are instructed to do so. 2. Before you open the booklet fill in the information below and
More informationConjugate-Gradient. Learn about the Conjugate-Gradient Algorithm and its Uses. Descent Algorithms and the Conjugate-Gradient Method. Qx = b.
Lab 1 Conjugate-Gradient Lab Objective: Learn about the Conjugate-Gradient Algorithm and its Uses Descent Algorithms and the Conjugate-Gradient Method There are many possibilities for solving a linear
More information452 FINAL- VERSION E Do not open this exam until you are told. Read these instructions:
1 452 FINAL- VERSION E Do not open this exam until you are told. Read these instructions: 1. This is a closed book exam, though one sheet of notes is allowed. No calculators, or other aids are allowed.
More informationOrdinary Differential Equations II: Runge-Kutta and Advanced Methods
Ordinary Differential Equations II: Runge-Kutta and Advanced Methods Sam Sinayoko Numerical Methods 3 Contents 1 Learning Outcomes 2 2 Introduction 2 2.1 Note................................ 4 2.2 Limitations
More informationExercise_set7_programming_exercises
Exercise_set7_programming_exercises May 13, 2018 1 Part 1(d) We start by defining some function that will be useful: The functions defining the system, and the Hamiltonian and angular momentum. In [1]:
More informationMA 262, Fall 2017, Final Version 01(Green)
INSTRUCTIONS MA 262, Fall 2017, Final Version 01(Green) (1) Switch off your phone upon entering the exam room. (2) Do not open the exam booklet until you are instructed to do so. (3) Before you open the
More informationMath 308 Spring Midterm Answers May 6, 2013
Math 38 Spring Midterm Answers May 6, 23 Instructions. Part A consists of questions that require a short answer. There is no partial credit and no need to show your work. In Part A you get 2 points per
More informationMATH 1040 Test 2 Spring 2016 Version A QP 16, 17, 20, 25, Calc 1.5, 1.6, , App D. Student s Printed Name:
Student s Printed Name: Instructor: CUID: Section # : You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell phone, laptop, PDA, or
More informationOptimization with Scipy (2)
Optimization with Scipy (2) Unconstrained Optimization Cont d & 1D optimization Harry Lee February 5, 2018 CEE 696 Table of contents 1. Unconstrained Optimization 2. 1D Optimization 3. Multi-dimensional
More informationStudent s Printed Name:
Student s Printed Name: Instructor: CUID: Section # : You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell phone, laptop, PDA, smart
More informationECE 204 Numerical Methods for Computer Engineers MIDTERM EXAMINATION /8:00-9:30
ECE 204 Numerical Methods for Computer Engineers MIDTERM EXAMINATION 2007-10-23/8:00-9:30 The examination is out of 67 marks. Instructions: No aides. Write your name and student ID number on each booklet.
More informationMthSc 103 Test 3 Spring 2009 Version A UC , 3.1, 3.2. Student s Printed Name:
Student s Printed Name: Instructor: CUID: Section # : Read each question very carefully. You are NOT permitted to use a calculator on any portion of this test. You are not allowed to use any textbook,
More informationMath 1: Calculus with Algebra Midterm 2 Thursday, October 29. Circle your section number: 1 Freund 2 DeFord
Math 1: Calculus with Algebra Midterm 2 Thursday, October 29 Name: Circle your section number: 1 Freund 2 DeFord Please read the following instructions before starting the exam: This exam is closed book,
More informationComplex Numbers. Visualize complex functions to estimate their zeros and poles.
Lab 1 Complex Numbers Lab Objective: Visualize complex functions to estimate their zeros and poles. Polar Representation of Complex Numbers Any complex number z = x + iy can be written in polar coordinates
More informationMath 51 Midterm 1 July 6, 2016
Math 51 Midterm 1 July 6, 2016 Name: SUID#: Circle your section: Section 01 Section 02 (1:30-2:50PM) (3:00-4:20PM) Complete the following problems. In order to receive full credit, please show all of your
More informationMAT 145 Test #4: 100 points
MAT 145 Test #4: 100 points Name Calculator Used Score Each statement (1) through (4) is FALSE, meaning that it is not always true. For each false statement, either (i) provide a counterexample that disproves
More informationStudent s Printed Name: _Key_& Grading Guidelines CUID:
Student s Printed Name: _Key_& Grading Guidelines CUID: Instructor: Section # : You are not permitted to use a calculator on any part of this test. You are not allowed to use any textbook, notes, cell
More informationVersion B QP1-14,18-24, Calc ,App B-D
MATH 00 Test Fall 06 QP-,8-, Calc.-.,App B-D Student s Printed Name: _Key_& Grading Guidelines CUID: Instructor: Section # : You are not permitted to use a calculator on any portion of this test. You are
More informationVariational Monte Carlo to find Ground State Energy for Helium
Variational Monte Carlo to find Ground State Energy for Helium Chris Dopilka December 2, 2011 1 Introduction[1][2] The variational principle from quantum mechanics gives us a way to estimate the ground
More informationLorenz Equations. Lab 1. The Lorenz System
Lab 1 Lorenz Equations Chaos: When the present determines the future, but the approximate present does not approximately determine the future. Edward Lorenz Lab Objective: Investigate the behavior of a
More informationMath 51 Second Exam May 18, 2017
Math 51 Second Exam May 18, 2017 Name: SUNet ID: ID #: Complete the following problems. In order to receive full credit, please show all of your work and justify your answers. You do not need to simplify
More informationComplex Numbers. A complex number z = x + iy can be written in polar coordinates as re i where
Lab 20 Complex Numbers Lab Objective: Create visualizations of complex functions. Visually estimate their zeros and poles, and gain intuition about their behavior in the complex plane. Representations
More informationf = Xw + b, We can compute the total square error of the function values above, compared to the observed training set values:
Linear regression Much of machine learning is about fitting functions to data. That may not sound like an exciting activity that will give us artificial intelligence. However, representing and fitting
More informationDM534 - Introduction to Computer Science
Department of Mathematics and Computer Science University of Southern Denmark, Odense October 21, 2016 Marco Chiarandini DM534 - Introduction to Computer Science Training Session, Week 41-43, Autumn 2016
More informationMthSc 107 Test 1 Spring 2013 Version A Student s Printed Name: CUID:
Student s Printed Name: CUID: Instructor: Section # : You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell phone, laptop, PDA, or
More informationChapter 1 Review of Equations and Inequalities
Chapter 1 Review of Equations and Inequalities Part I Review of Basic Equations Recall that an equation is an expression with an equal sign in the middle. Also recall that, if a question asks you to solve
More informationLine Search Algorithms
Lab 1 Line Search Algorithms Investigate various Line-Search algorithms for numerical opti- Lab Objective: mization. Overview of Line Search Algorithms Imagine you are out hiking on a mountain, and you
More informationMath 1020 TEST 3 VERSION A Spring 2017
Printed Name: Section #: Instructor: Please do not ask questions during this eam. If you consider a question to be ambiguous, state your assumptions in the margin and do the best you can to provide the
More informationMath 1020 ANSWER KEY TEST 3 VERSION A Fall 2016
Printed Name: Section #: Instructor: Please do not ask questions during this eam. If you consider a question to be ambiguous, state your assumptions in the margin and do the best you can to provide the
More information1 Introduction & Objective
Signal Processing First Lab 13: Numerical Evaluation of Fourier Series Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in
More informationMath 308 Midterm Answers and Comments July 18, Part A. Short answer questions
Math 308 Midterm Answers and Comments July 18, 2011 Part A. Short answer questions (1) Compute the determinant of the matrix a 3 3 1 1 2. 1 a 3 The determinant is 2a 2 12. Comments: Everyone seemed to
More informationTest 3 - Answer Key Version B
Student s Printed Name: Instructor: CUID: Section: Instructions: You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell phone, laptop,
More informationStudent s Printed Name: _KEY Grading Guidelines CUID:
Student s Printed Name: _KEY Grading Guidelines CUID: Instructor: Section # : You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell
More informationStudent s Printed Name: _Key
Student s Printed Name: _Key Instructor: CUID: Section # : You are not permitted to use a calculator on any part of this test. You are not allowed to use any textbook, notes, cell phone, laptop, PDA, or
More informationHomework 2 Computational Chemistry (CBE 60553)
Homework 2 Computational Chemistry (CBE 60553) Prof. William F. Schneider Due: 1 Lectures 1-2: Review of quantum mechanics An electron is trapped in a one-dimensional box described by
More informationMath 51 First Exam October 19, 2017
Math 5 First Exam October 9, 27 Name: SUNet ID: ID #: Complete the following problems. In order to receive full credit, please show all of your work and justify your answers. You do not need to simplify
More information- - - - - - - - - - - - - - - - - - DISCLAIMER - - - - - - - - - - - - - - - - - - General Information: This is a midterm from a previous semester. This means: This midterm contains problems that are of
More informationMATH 099 Name (please print) FINAL EXAM - FORM A Winter 2015 Instructor Score
MATH 099 Name (please print) Winter 2015 Instructor Score Point-values for each problem are shown at the right in parentheses. PART I: SIMPLIFY AS MUCH AS POSSIBLE: 1. ( 16 c 12 ) 3 4 1. (2) 2. 52 m "7
More informationTest 3 Version A. On my honor, I have neither given nor received inappropriate or unauthorized information at any time before or during this test.
Student s Printed Name: Instructor: CUID: Section: Instructions: You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell phone, laptop,
More informationMath 2114 Common Final Exam May 13, 2015 Form A
Math 4 Common Final Exam May 3, 5 Form A Instructions: Using a # pencil only, write your name and your instructor s name in the blanks provided. Write your student ID number and your CRN in the blanks
More informationMthSc 107 Test 1 Spring 2013 Version A Student s Printed Name: CUID:
Student s Printed Name: CUID: Instructor: Section # : You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell phone, laptop, PDA, or
More informationSTUDENT NAME: STUDENT SIGNATURE: STUDENT ID NUMBER: SECTION NUMBER RECITATION INSTRUCTOR:
MA262 FINAL EXAM SPRING 2016 MAY 2, 2016 TEST NUMBER 01 INSTRUCTIONS: 1. Do not open the exam booklet until you are instructed to do so. 2. Before you open the booklet fill in the information below and
More informationChapter 3 - Derivatives
Chapter 3 - Derivatives Section 3.1: The derivative at a point The derivative of a function f (x) at a point x = a is equal to the rate of change in f (x) at that point or equivalently the slope of the
More informationMA162 EXAM III SPRING 2017 APRIL 11, 2017 TEST NUMBER 01 INSTRUCTIONS:
MA62 EXAM III SPRING 207 APRIL, 207 TEST NUMBER 0 INSTRUCTIONS:. Do not open the exam booklet until you are instructed to do so. 2. Before you open the booklet fill in the information below and use a #
More informationHow many hours would you estimate that you spent on this assignment?
The first page of your homework submission must be a cover sheet answering the following questions. Do not leave it until the last minute; it s fine to fill out the cover sheet before you have completely
More informationMath 41 First Exam October 12, 2010
Math 41 First Exam October 12, 2010 Name: SUID#: Circle your section: Olena Bormashenko Ulrik Buchholtz John Jiang Michael Lipnowski Jonathan Lee 03 (11-11:50am) 07 (10-10:50am) 02 (1:15-2:05pm) 04 (1:15-2:05pm)
More informationPrinted Name: Section #: Instructor:
Printed Name: Section #: Instructor: Please do not ask questions during this eam. If you consider a question to be ambiguous, state your assumptions in the margin and do the best you can to provide the
More informationMAS212 Scientific Computing and Simulation
MAS212 Scientific Computing and Simulation Dr. Sam Dolan School of Mathematics and Statistics, University of Sheffield Autumn 2017 http://sam-dolan.staff.shef.ac.uk/mas212/ G18 Hicks Building s.dolan@sheffield.ac.uk
More information2. To receive credit on any problem, you must show work that explains how you obtained your answer or you must explain how you obtained your answer.
Math 50, Fall 2011 Test 3 PRINT your name on the back of the test. Directions 1. Time limit: 1 hour 50 minutes. 2. To receive credit on any problem, you must show work that explains how you obtained your
More information11 /2 12 /2 13 /6 14 /14 15 /8 16 /8 17 /25 18 /2 19 /4 20 /8
MAC 1147 Exam #1a Answer Key Name: Answer Key ID# Summer 2012 HONOR CODE: On my honor, I have neither given nor received any aid on this examination. Signature: Instructions: Do all scratch work on the
More informationPhysics Exam I
Physics 208 - Exam I Spring 2018 (all sections) - February 12, 2018. Please fill out the information and read the instructions below, but do not open the exam until told to do so. Rules of the exam: 1.
More informationLab 11 Simple Harmonic Motion A study of the kind of motion that results from the force applied to an object by a spring
Lab 11 Simple Harmonic Motion A study of the kind of motion that results from the force applied to an object by a spring Print Your Name Print Your Partners' Names Instructions April 20, 2016 Before lab,
More informationLeast squares and Eigenvalues
Lab 1 Least squares and Eigenvalues Lab Objective: Use least squares to fit curves to data and use QR decomposition to find eigenvalues. Least Squares A linear system Ax = b is overdetermined if it has
More informationAMSC/CMSC 466 Problem set 3
AMSC/CMSC 466 Problem set 3 1. Problem 1 of KC, p180, parts (a), (b) and (c). Do part (a) by hand, with and without pivoting. Use MATLAB to check your answer. Use the command A\b to get the solution, and
More information1.1 Functions and Their Representations
Arkansas Tech University MATH 2914: Calculus I Dr. Marcel B. Finan 1.1 Functions and Their Representations Functions play a crucial role in mathematics. A function describes how one quantity depends on
More informationMath 19 Practice Exam 2B, Winter 2011
Math 19 Practice Exam 2B, Winter 2011 Name: SUID#: Complete the following problems. In order to receive full credit, please show all of your work and justify your answers. You do not need to simplify your
More informationConditioning and Stability
Lab 17 Conditioning and Stability Lab Objective: Explore the condition of problems and the stability of algorithms. The condition number of a function measures how sensitive that function is to changes
More informationTest 2 - Answer Key Version A
MATH 8 Student s Printed Name: Instructor: Test - Answer Key Spring 6 8. - 8.3,. -. CUID: Section: Instructions: You are not permitted to use a calculator on any portion of this test. You are not allowed
More informationBoolean circuits. Lecture Definitions
Lecture 20 Boolean circuits In this lecture we will discuss the Boolean circuit model of computation and its connection to the Turing machine model. Although the Boolean circuit model is fundamentally
More informationPhysics Exam I
Physics 208 - Exam I Fall 2017 (all sections) September 25 th, 2017. Please fill out the information and read the instructions below, but do not open the exam until told to do so. Rules of the exam: 1.
More informationWithout fully opening the exam, check that you have pages 1 through 11.
MTH 33 Solutions to Final Exam May, 8 Name: Section: Recitation Instructor: INSTRUCTIONS Fill in your name, etc. on this first page. Without fully opening the exam, check that you have pages through. Show
More informationPre-Calculus Exam 2009 University of Houston Math Contest. Name: School: There is no penalty for guessing.
Pre-Calculus Exam 009 University of Houston Math Contest Name: School: Please read the questions carefully and give a clear indication of your answer on each question. There is no penalty for guessing.
More informationCS 350 Algorithms and Complexity
CS 350 Algorithms and Complexity Winter 2019 Lecture 15: Limitations of Algorithmic Power Introduction to complexity theory Andrew P. Black Department of Computer Science Portland State University Lower
More informationLIMITS AND DERIVATIVES
2 LIMITS AND DERIVATIVES LIMITS AND DERIVATIVES 2.2 The Limit of a Function In this section, we will learn: About limits in general and about numerical and graphical methods for computing them. THE LIMIT
More informationTest 3 Version A. On my honor, I have neither given nor received inappropriate or unauthorized information at any time before or during this test.
Student s Printed Name: Instructor: CUID: Section: Instructions: You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell phone, laptop,
More informationMath 41 Second Exam November 4, 2010
Math 41 Second Exam November 4, 2010 Name: SUID#: Circle your section: Olena Bormashenko Ulrik Buchholtz John Jiang Michael Lipnowski Jonathan Lee 03 (11-11:50am) 07 (10-10:50am) 02 (1:15-2:05pm) 04 (1:15-2:05pm)
More informationPhysics Grading Sheet.
Physics - Grading Sheet. Dept. of Physics and Astronomy. TAMU. Marking Instructions Fill oval completely Erase cleanly Students Fill Only this information. First Name: Last Name:. Section:. Clearly hand-write
More informationPrinted Name: Section #: Instructor:
Printed Name: Section #: Instructor: Please do not ask questions during this eam. If you consider a question to be ambiguous, state your assumptions in the margin and do the best you can to provide the
More informationCompanion. Jeffrey E. Jones
MATLAB7 Companion 1O11OO1O1O1OOOO1O1OO1111O1O1OO 1O1O1OO1OO1O11OOO1O111O1O1O1O1 O11O1O1O11O1O1O1O1OO1O11O1O1O1 O1O1O1111O11O1O1OO1O1O1O1OOOOO O1111O1O1O1O1O1O1OO1OO1OO1OOO1 O1O11111O1O1O1O1O Jeffrey E.
More informationMTH 133 Solutions to Exam 2 April 19, Without fully opening the exam, check that you have pages 1 through 12.
MTH 33 Solutions to Exam 2 April 9, 207 Name: Section: Recitation Instructor: INSTRUCTIONS Fill in your name, etc. on this first page. Without fully opening the exam, check that you have pages through
More informationMATH 1070 Test 3 Spring 2015 Version A , 5.1, 5.2. Student s Printed Name: Key_&_Grading Guidelines CUID:
MATH 00 Test Spring 05 Student s Printed Name: Key_&_Grading Guidelines CUID: Instructor: Section # : You are not permitted to use a calculator on any part of this test. You are not allowed to use any
More informationIntroduction to Python
Introduction to Python Luis Pedro Coelho Institute for Molecular Medicine (Lisbon) Lisbon Machine Learning School II Luis Pedro Coelho (IMM) Introduction to Python Lisbon Machine Learning School II (1
More informationPage Points Score Total: 100
Math 1130 Spring 2019 Sample Exam 1c 1/31/19 Name (Print): Username.#: Lecturer: Rec. Instructor: Rec. Time: This exam contains 8 pages (including this cover page) and 7 problems. Check to see if any pages
More informationName: Date: 3. Which is more concentrated (circle one.): 14.0 ppm CO 2 OR ppb CO 2?
Name: Date: There are 25 questions totaling 90 points (scored out of 100 pts with Internship Activity). PLEASE look over the entire examination (8 pages total) BEFORE you begin to ensure your packet is
More informationWithout fully opening the exam, check that you have pages 1 through 11.
Name: Section: (Recitation) Instructor: INSTRUCTIONS Fill in your name, etc. on this first page. Without fully opening the exam, check that you have pages through. Show all your work on the standard response
More informationMATH 112 Final Exam, Spring Honor Statement
NAME: QUIZ Section: STUDENT ID: MATH 112 Final Exam, Spring 2013 Honor Statement I affirm that my work upholds the highest standards of honesty and academic integrity at the University of Washington, and
More informationTO WRITE A PROGRAM = TO FORMULATE ACCURACY
TO WRITE A PROGRAM = TO FORMULATE ACCURACY Jan KASPAR Charles University in Prague, Faculty of Mathematics and Physics Sokolovska 83, 186 00 Praha 8,Czech republic E-mail: kaspar@karlin.mff.cuni.cz ABSTRACT
More informationMATH 251 MATH 251: Multivariate Calculus MATH 251 FALL 2009 EXAM-I FALL 2009 EXAM-I EXAMINATION COVER PAGE Professor Moseley
MATH 251 MATH 251: Multivariate Calculus MATH 251 FALL 2009 EXAM-I FALL 2009 EXAM-I EXAMINATION COVER PAGE Professor Moseley PRINT NAME ( ) Last Name, First Name MI (What you wish to be called) ID # EXAM
More informationTotal 100
MATH 112 Final Exam Spring 2016 Name Student ID # Section HONOR STATEMENT I affirm that my work upholds the highest standards of honesty and academic integrity at the University of Washington, and that
More informationMATH 251 MATH 251: Multivariate Calculus MATH 251 SPRING 2010 EXAM-I SPRING 2010 EXAM-I EXAMINATION COVER PAGE Professor Moseley
MATH 51 MATH 51: Multivariate Calculus MATH 51 SPRING 010 EXAM-I SPRING 010 EXAM-I EXAMINATION COVER PAGE Professor Moseley PRINT NAME ( ) Last Name, First Name MI (What you wish to be called) ID # EXAM
More informationMATH 1070 Test 1 Spring 2014 Version A Calc Student s Printed Name: Key & Grading Guidelines CUID:
Student s Printed Name: Key & Grading Guidelines CUID: Instructor: Section # : You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell
More informationMATH 1B03 Day Class Final Exam Bradd Hart, Dec. 13, 2013
MATH B03 Day Class Final Exam Bradd Hart, Dec. 3, 03 Name: ID #: The exam is 3 hours long. The exam has questions on page through ; there are 40 multiple-choice questions printed on BOTH sides of the paper.
More informationFall 2016 Test 1 with Solutions
CS3510 Design & Analysis of Algorithms Fall 16 Section B Fall 2016 Test 1 with Solutions Instructor: Richard Peng In class, Friday, Sep 9, 2016 Do not open this quiz booklet until you are directed to do
More informationENGR Spring Exam 2
ENGR 1300 Spring 013 Exam INSTRUCTIONS: Duration: 60 minutes Keep your eyes on your own work! Keep your work covered at all times! 1. Each student is responsible for following directions. Read carefully..
More informationMidterm: CS 6375 Spring 2015 Solutions
Midterm: CS 6375 Spring 2015 Solutions The exam is closed book. You are allowed a one-page cheat sheet. Answer the questions in the spaces provided on the question sheets. If you run out of room for an
More information