




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Section:
Name and email address:
This exam is a fifty-minute exam (the entire class period). The exam is closed book and
closed notes. A non-graphing 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.
An equation sheet is included on the last page of this exam.
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.
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).
Circle True or False. If False, briefly explain your reasoning
True / False
accurately using floating point computations.
True / False
True / False
data set must be unique.
True / False
Matlab’s interp1 function, the data set below will result in oscillations in the interpolated
function.
True / False
x
f ( ) x (^) Data Set A
x
f ( ) x (^) Data Set B
x
f ( ) x (^) Data Set A
x
f ( ) x (^) Data Set A
x
f ( ) x (^) Data Set B
x
f ( ) x (^) Data Set B
x
f ( ) x
Consider the following data set:
x = 3 4 5 6 7
y = 38 32 25 21 15
Determine the coefficients k and b for which the following function fits the data best:
b / x y kx
Show your work and provide a short explanation of each solution step (so that we can give partial
credit in case you make a calculation error). Round intermediate results at 3 digits behind the
decimal point.
Partial credit alternative: Instead of answering the question above, you can answer the
following question for a maximum of 15 points (i.e., you will get at most 15 out of 30 on this
question): Derive the equations for a linear curve fit of the form y=ax+b and solve for a and b
using the data set given above.
n
− = ×
with 1
e m b m b
with | |
x (^) t eps eps b x
( ) ( ) 2 ( ) ( ) ( ) ( )( ) ( ) ( ) 2!!
n n n
f a f a f x f a f a x a x a x a R n
( 1) ( ) 1 ( ) ( 1)!
n n n
f R x a n
= −
l u r
x x x
new old r r u^ l a new r u l
x x x x
x x x
0
n a n
x E
u l u r u l u
f x x x x x f x f x
1
i i i i
f x x x f x
2 , 1 ,
r t i t i r
f x E E f x
2
1
n
r i i
2
1
n
t i i
T T Z Z A = Z Y
(^1 2 ) ( )
i i i i
i i
n x y x y a n x x
a 0 (^) = y − a x 1 1
n
i i
2 t r
t
r S
2 2 2 2
i i i i
i i i i
n x y x y r
n x x n y y
1 0 1 0 0 1 0
f x f x f x f x x x x x
1 1 1 2 0 1 1 0 0
n n n n n n n
f x x x f x x x f x x x x x x
− − − −
0 1 0 0 2 1 0 0 1 2
1 0 0 1 1
n
n n n
f x f x f x x x x f x x x x x x x x x
f x x (^) − x x x x x x x −