Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

ME685: Applied Numerical Methods

Homework Assignment 1

Due Date: 01-02-2023 (5 PM)

___________________________________________________________________________

Q1. [25 marks] Consider the following equation,

𝑥 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, A is the cross-sectional area, C is a constant, n is the Manning roughness coefficient, S


is the longitudinal channel slope, and R is the hydraulic radius.

𝐴
𝑅=
𝑃

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

Amount × 106 67 84 98 125 149 185


Perform least regression using the following approximations, 1) parabolic, 2) cubic, and 3)
exponential. Plot the data points (using scatter or points), and regression curve (solid line). Also
find the 𝑟 2 and standard error (𝑠𝑦/𝑥 ) for each method.

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.

You might also like