Faculty of Science and Technology OPENBOOK EXAM: COM 123 Numerical Analysis and Computation
Faculty of Science and Technology OPENBOOK EXAM: COM 123 Numerical Analysis and Computation
Faculty of Science and Technology OPENBOOK EXAM: COM 123 Numerical Analysis and Computation
TIME ALLOWED:.
AVAILABLE FROM: Date: Monday, 4th January 2021 Time: 09.00 a.m.
TO:
(UPLOAD DEADLINE): Date: Monday, 16th January 2021 Time: 16.00 p.m.
INSTRUCTIONS TO CANDIDATES
This paper consists of a Case Study which you are expected to read carefully and
understand before attempting to answer the accompanying questions.
The paper consists of two sections A and B. Section A is compulsory. Attempt any one
question from section B
1. Clearly indicate the following on the Answer Booklet: Course Code and Course
Name, e.g., COM121 Linear Programming.
2. Write/Type your Name and Student ID (Registration Number) on each and every
page of the Answer Booklet, preferably as a Header.
3. Read each question carefully before you answer.
4. Answer the questions in the downloaded Answer Booklet (offline) as a typed
Microsoft Word document.
5. If the paper is a mathematics paper, and you cannot type your answers using the
Microsoft Word Equation Editor:
CASE STUDY:
The overall goal of the field of numerical analysis is the design and analysis of
techniques to give approximate but accurate solutions to hard problems, the variety
of which is suggested by the following: Advanced numerical methods are essential
in making numerical weather prediction feasible; Computing the trajectory of a
spacecraft requires the accurate numerical solution of a system of ordinary
differential equations.
Car companies can improve the crash safety of their vehicles by using computer
simulations of car crashes. Such simulations essentially consist of solving partial
differential equations numerically. Sophisticated numerical analysis software is
being embedded in popular software packages, e.g. spreadsheet programs. Modern
business makes much use of optimization methods in deciding how to allocate
resources most efficiently. These include problems such as inventory control,
Cavendish University Uganda - Examination, 2021 Page 2 of 5
scheduling, how best to locate manufacturing storage facilities, investment
strategies, and others.
Algorithms used for numerical analysis range from basic numerical functions to
calculate interest income to advanced functions that offer specialized optimization
and forecasting techniques. Different Areas And Methods under Numerical Analysis
include: Interpolation/extrapolation (Newton’s finite difference Interpolation,
Lagrange’s Interpolation, Spline Interpolation), Finite Difference Operators
(Forward, Backward, Central, Average, Displacement/Shift operators), Numerical
Differentiation, Numerical Integration, Solving a system of linear equations and
Solving non-linear equations, etc.
Since numerical methods result in approximate solutions rather than exact solutions
that are normally obtained using analytical methods, there are errors associated with
them. Such errors include truncation errors, rounding errors, etc.
The following are two application of numerical analysis in Computer Science and
Physics and Engineering (electricity).
CPU usage was monitored over Windows Task Manager for a period of an hour
with Windows
SQL server and supporting utilities running. The data values obtained were
tabulated as follows;
In a circuit with impressed voltage V(t) and the inductance L, Kirchoff’s first law
gives:
dI
V(t) = L R
dT
Where R is the resistance in the circuit and I is the current in amperes, T is the time
in seconds. Several values of I and T that were measured are shown in the table
below:
Q.1
(a) A number of areas/disciplines are mentioned in the case where numerical analysis
is applied. Identify and discuss one problem each in Biology and Chemistry that can
be solved using numerical methods.(5 marks @). NB. Each problem discussed
should not exceed half a page.
(b) The case study points out that numerical methods give an approximate solution
rather than an exact solution to that cannot be solved analytically. Give and discuss
the three(3) main features each, of approximate solutions and exact solutions. (6
marks)
(c) Two main types of errors are mentioned in the case. These are the truncation
errors and rounding errors. There are, however, other errors that may occur. These
include: machine/computer errors, human errors. Discuss how these errors occur. (9
marks).
Total 25 marks.
Q.2
(a) There are a number of finite differences operators mentioned in the case.
Using the function 𝑓𝑘 :and/or f(x). Give and define these operators. (2 marks
@).
(b) Give and discuss two applications of finite difference operators. (4 marks).
(c) (i) Determine an appropriate Lagrange’s polynomial that fits the values
given for the
Computer Science application .(6marks)
(ii) Use the polynomial obtained in ((c)(i) to estimate CPU usage f at t =
75minutes.
(Hint I hour = 60 minutes ). (5marks)
Total 25 marks.
Q.3