0% found this document useful (0 votes)
90 views

Assignment 1

This document provides instructions for Assignment 1 for the course KIL1005. The assignment is divided into two parts: Part A involves calculating real roots of functions graphically and numerically, and Part B repeats Part A using MATLAB. Part A consists of 3 questions calculating real roots of polynomials using bisection and false position methods. For each question, students must find the roots graphically and numerically with the two methods, and plot the numerical solutions on a single graph. Part B requires pasting the MATLAB code used to solve each question numerically with the two methods. The assignment is due on May 4, 2020.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views

Assignment 1

This document provides instructions for Assignment 1 for the course KIL1005. The assignment is divided into two parts: Part A involves calculating real roots of functions graphically and numerically, and Part B repeats Part A using MATLAB. Part A consists of 3 questions calculating real roots of polynomials using bisection and false position methods. For each question, students must find the roots graphically and numerically with the two methods, and plot the numerical solutions on a single graph. Part B requires pasting the MATLAB code used to solve each question numerically with the two methods. The assignment is due on May 4, 2020.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment 1:KIL1005 Semester 2, 2019/2020

Assignment 1 (KIL1005) – 10% of the total continuous marks


Date of release: 27/4/2020
Date of Submission: 4/5/2020
Instruction: The assignment is consisted of two parts: Part A (Conventional calculation)
and Part B (MATLAB). Each group (maximum four students) need to submit only one
assignment. For Part A, you may type or hand-written your answers. Please compile your
answers and send it to the Spectrum’s link in pdf format. State clearly the name and ID
number of each member of the group.

Part A
1. Determine the real root of
f ( x )=−25+82 x −90 x2 + 44 x 3−8 x 4 +0.7 x 5
(a) Graphically
(b) Using the bisection method. Employ initial guesses of x l=0.5 and xu=1.0 . Iterate until
the approximate relative error after each iteration falls below a stopping criterion of
10 %.
(c) Perform the same calculation as in (b) but use the false-position method and a
stopping criterion of 5 %.
(d) Plot the answers obtained in (b) and (c) on a single graph (you may use EXCEL to plot
it).
(2 marks)

2. Determine the real root of


f ( x )=−2 x 6−1.5 x 4 +10 x +2
(a) Graphically
Using the bisection method. Employ initial guesses of x l=0 and xu=1.0 . Iterate until the approximate
relative error after each iteration falls below a stopping criterion of 5 %.
(b) Perform the same calculation as in (b) but use the false-position method and a
stopping criterion of 1 %.
(c) Plot the answers obtained in (b) and (c) on a single graph (you may use EXCEL to plot
it).
(2 marks)

3. Water is flowing in a trapezoid channel at a rate of Q = 20 m 3/s. The critical depth y for
such a channel must satisfy the equation
Q2
0=1− B
g A 3c

1/2
Assignment 1:KIL1005 Semester 2, 2019/2020

where g = 9.81 m/s2, Ac = the cross-sectional area (m 2) and B = the width of the channel
at the surface (m). For this case, the width and the cross-sectional area can be related to
depth y by:
B=3+ y
y2
Ac =3 y +
2
Solve for the critical depth using
(a) The graphically method
(b) Bisection method. Employ initial guesses of xl=0.5 and xu=2.5 . Iterate until the
approximate relative error after each iteration falls below a stopping criterion of 10
%.
(c) False-position method. Employ the same parameters as in (b).
(d) Plot the answers obtained in (b) and (c) on a single graph (you may use EXCEL to plot
it).
(3 marks)

PART B

Redo all the questions in Part A using MATLAB. In this part, the students need to copy and
paste the MATLAB programme that they have used to solve each question. For each
question, only do (b) and (c).
(3 marks)

END

2/2

You might also like