Docsity

ME 2016 Midterm Exam 2 - Fall Semester 2005 - Computing Techniques 3-0-3, Exams of Computer Science

Toggle sidebar
bg1
ME 2016 Section A-C
Fall Semester 2005
Computing Techniques 3-0-3
Midterm Exam 2
Friday, November 4, 2005
Section:
Name and email address:
READ THIS FIRST
This exam is a fifty-minute exam (the entire class period). The exam is closed book and closed
notes. You may use one sheet of formulae (8.5”x11”). A pocket calculator can be used. You are on
your honor not to consult with your classmates. Cheating will not be tolerated and will result in
immediate and strict action.
Please feel free to use any pictures, graphs, flow charts, code fragments, or written comments in
describing your understanding of the problems and their solutions. Be sure to clearly state any
assumptions or conditions regarding the solution. Please write all of your answers on these sheets. You
may use the back of the paper if necessary. A total of 100 points are awarded.
Honor Code Statement:
My signature below indicates that I have read the above text. On my honor, I pledge that I have neither
given nor received inappropriate aid in the preparation of this examination. I also pledge that I have not
spoken with any students who have previously taken the ME 2016 exam today (if you have, please come
forward and receive a similar but different exam from your professor – no penalty). Further, I will not
discuss this exam with any other student taking ME 2016 this semester who has not yet taken the exam
until after all the exams have been given (5PM on the day of the exam).
Signature: _____________________________________________________________
Question Maximum Score Student’s Score
1 – True or False 10
2 – Short question 1 10
– Short question 2 10
3 – Trapezoidal Integration 10
– Gauss Quadrature Integration 15
– Error Analysis 5
– Graphical Interpretation 15
4 – Curve Fitting in Matlab 25
TOTAL 100
Page 1
pf3
pf4
pf5

Partial preview of the text

Download ME 2016 Midterm Exam 2 - Fall Semester 2005 - Computing Techniques 3-0-3 and more Exams Computer Science in PDF only on Docsity!

ME 2016 Section A-C

Fall Semester 2005

Computing Techniques 3-0-

Midterm Exam 2

Friday, November 4, 2005

Section:

Name and email address:

READ THIS FIRST

This exam is a fifty-minute exam (the entire class period). The exam is closed book and closed notes. You may use one sheet of formulae (8.5”x11”). A pocket calculator can be used. You are on your honor not to consult with your classmates. Cheating will not be tolerated and will result in immediate and strict action.

Please feel free to use any pictures, graphs, flow charts, code fragments, or written comments in describing your understanding of the problems and their solutions. Be sure to clearly state any assumptions or conditions regarding the solution. Please write all of your answers on these sheets. You may use the back of the paper if necessary. A total of 100 points are awarded.

Honor Code Statement:

My signature below indicates that I have read the above text. On my honor, I pledge that I have neither given nor received inappropriate aid in the preparation of this examination. I also pledge that I have not spoken with any students who have previously taken the ME 2016 exam today (if you have, please come forward and receive a similar but different exam from your professor – no penalty). Further, I will not discuss this exam with any other student taking ME 2016 this semester who has not yet taken the exam until after all the exams have been given (5PM on the day of the exam).

Signature: _____________________________________________________________

Question Maximum Score Student’s Score

1 – True or False 10

2 – Short question 1 10

  • Short question 2 (^10)

3 – Trapezoidal Integration 10

  • Gauss Quadrature Integration (^15)
  • Error Analysis (^5)
  • Graphical Interpretation (^15)

4 – Curve Fitting in Matlab 25

TOTAL 100

Question 1: True or False (10 points; 2 points each)

Circle True or False. If False, briefly explain your reasoning

  1. Euler integration is the preferred method for solving linear ordinary differential equations.

True / False

2) In third order (cubic) interpolation, a 3 rd^ order polynomial is fit through 3 data points.

True / False

3) In linear least-squares regression, the objective is to fit a line exactly through as many given

data points as possible.

True / False

4) Neither Simpson’s 1/3 Rule nor 3/8 Rule integration methods can integrate a third-order

polynomial exactly.

True / False

5) Newton’s interpolating polynomials can be reduced, through algebraic manipulation, to the

form:

fn (x) = a 0 + a 1 x + a 2 x^2 + ... + a n xn

True / False

Question 3: Numerical Integration (45 points)

In this question, you will apply trapezoidal integration and 2-point Gauss quadrature to the following integral:

4 / 4

0

x

I = e dx

3.1 Trapezoidal Integration (10 points)

Compute the integral above using the single application trapezoidal rule.

3.2 Two-Point Gauss Quadrature Integration (15 points)

Compute the integral above using 2-point Gauss quadrature integration.

3.3 Error Analysis (5 points)

The analytical solution to the integration problem is:

4 / 4 / 4^4 0 0

4

x x I = (^) ∫ e dx = e

Compute the absolute, true errors for both trapezoidal and 2-point Gauss quadrature integration; include the formula for the absolute error.

3.4 Interpretation (15 points)

On the graphs below, graphically illustrate both the trapezoidal and Gauss quadrature integration results. Does the graphical interpretation match your error analysis? Explain how the size of the error is reflected in the graph.

-1 0 1 2 3 4 5 0

1

2

3

4