Professional Documents
Culture Documents
ME685 Homework1 Corrected
ME685 Homework1 Corrected
Homework Assignment 1
___________________________________________________________________________
𝑥 tan(𝑥) = 1
Solve to find the root using, a) Bisection method, b) Newton Raphson. Plot and compare the
estimated root and relative normalized error vs. the number of iterations over 50 iterations,
from the two numerical techniques.
Q2. [25 marks] The Manning’s equation for flow through a channel is given by,
𝐶 2 1
𝑄=𝐴 𝑅3 𝑆 2
𝑛
𝐴
𝑅=
𝑃
Where, P is the wetting perimeter. Consider a channel with trapezoidal cross-section with area
(A) and perimeter (P) given below.
𝐴 = (𝑏 + 𝑚𝑦)𝑦
𝑃 = 𝑏 + 2𝑦√1 + 𝑚2
𝑚3
The parameters are, 𝑄 = 6 [ ] , 𝐶 = 1, 𝑛 = 0.016, 𝑏 = 3 [m], 𝑚 = 2, 𝑆 = 1 × 10−4. The
𝑠
error tolerance is 10-6. Solve for the depth of the channel (𝑦) between [1, 2] using 1) False-
Position, and 2) Secant Method and plot the estimated root and relative normalized error vs.
the number of iterations till convergence.
Q3. [25 marks] The data below shows the growth of bacteria in a culture over several days.
Day 0 4 8 12 16 20
Q4. [25 marks] Consider the open circuit voltage data vs. state-of-charge data for a lithium-ion
battery electrode, in the attached csv file. Fit a linear spline interpolation through the dataset.
Plot the data in scatter and fitted interpolation curve using solid line.
Note: Assume any missing data and state your assumption. Assimilate the answers in the format
of 1) Approach to the problem and written algorithm of the numerical technique, 2) Copy of
the code, and 3) Plot and results. The problems should be organized in a sequential format. The
assignment should be merged in pdf with filename, “RollNumber_ME685_Homework1” and
uploaded to MooKit.