Escolar Documentos
Profissional Documentos
Cultura Documentos
Name____________________
Problem 1. Consider the bungee jumper model F =F
D
+F
U
, where F is the net force,
i.e. F =ma , F
D
=mg is the force of gravity and F
U
=cv is the resistant of the air, where
m is the mass of the jumper in kg, v is the velocity of the jumper in m/s and c is a first
order drug coefficient.
a) Assuming that m =50 kg, g =10 m/s
2
and c =10 kg/s, solve the initial value
problem:
1
10
5
dv
v
dt
=
with
(0) 45. v =
b) Using the Eulers Method rewrite the differential equation from part a):
TNUT, K45AP, Applied Mathematics for MAE, MIDTERM 06/10/2013 Page 2
Problem 2.
a) Write a MATLAB code that solves the system
1 2
1 2
4 8 24
6 34
x x
x x
=
+ =
graphically.
b) Write a MATLAB code that solves the system by Cramers rule:
1 2
1 2
4 8 24
6 34
x x
x x
=
+ =
Problem 3.
a) What are the dimensions of the variable V and what are its values after the
following MATLAB code is executed:
n=input('dimension of V');
V=ones(n); s=floor(n/2);
for i=1:n
for j=1:s
V(i,2*j)=i+j;
end
end
b) Find the error in the code bellow:
x=[1 2 3 4 5];
fx=@(x) 3x^2 +1;
y=fx(x);
plot(x, y, o), grid;
TNUT, K45AP, Applied Mathematics for MAE, MIDTERM 06/10/2013 Page 3
Problem 4. Write a M-File that computes e
x
by using the Taylor polynomial
approximation:
2
1
1! 2! !
n
x
x x x
e
n
= + + + + +
.
The program needs to request as an input the value of x and the program needs to
stop when the relative error in the approximation is below 1%.
Problem 5. Write a short M-File that approximates the roots of the polynomial
2
( ) 4 3 f x x x = +
using incremental search on the interval [0, 3] with an
incremental step of 0.01.
TNUT, K45AP, Applied Mathematics for MAE, MIDTERM 06/10/2013 Page 4
Problem 5. The following data is given:
x 1 2 3 4 5 6
y 6 12 24 46 94 191
After plotting it is clear that the data follows an exponential pattern: y =c
.
a
x
a) Plot the data to confirm the observation:
[Use appropriate scale]
b)Show the work that can linearize the model and then apply it to the data.
What would the linearized data be:
X
Y
c) If after applying linear fit let the slope of the calculated line be m and the y-intercept
be b. How can we use m and b to calculate c and a for the original model.