Computational methods
Computational methods
SCHOOL OF MATHEMATICS
COLLEGE OF BIOLOGICAL AND PHYSICAL SCIENCES (CBPS)
INSTRUCTIONS1 :
• EXAM: Answer question ONE, and TWO other questions.
• TUTORIAL: Attempt all the questions.
• You may use your books, notes, or phones (Phones are absolutely prohibited in the exam).
• You are required to show your work on each problem on this exam.
• Unless otherwise stated, use 4dp arithmetic.
(d) z = x/y
Determine the absolute and relative errors in each case.
3. Find the argument for which f (x) = 8 given the following table
x 1 2 4
f (x) 4 12 20
4. (a) Determine the number of decimal integers that can be stored in a 32-bit computer
(b) Clearly derive the solution to the quadratic formulae ax2 + bx + c = 0
(c) Show that one of the roots can be expressed as x1 = √ 2c
b+ b2 −4ac
7. Using the following table, find the argument for which f (x) = 9
x -2 3 6
f (x) 0 4 10
8. (a) Discuss/define
• Newton forward difference polynomial
• Lagrange interpolating polynomial
(b) Prove the following relations
• (1 + ∆)(1 − ∇) = 1
• ∆2 ex = (eh − 1)2 ex
• ∆{f (x) · g(x)} = f (x) · ∆g(x) + g(x + h) · ∆f (x)
• ∇{f (x) · g(x)} = f (x) · ∇g(x) + g(x − h) · ∇f (x)
9. Show that ∆ · ∇ = ∆ − ∇ where the operators are within their usual meaning.
10. Show that the operators ∆ and E are commutative i.e. ∆Ef (x) = E∆f (x), where the operators are
within their usual meaning.
STA3122: COMPUTATIONAL METHODS
STA3122
AND DATA
- PageANALYSIS
3 of 4 I May 8, 2023
∆ 2
11. Find E ex give that the interval of differencing is h.
∆ 2
∆2 f (x)
12. Distinguish between E and E 2 f (x) .
13. Find ∆f (3), ∆2 f (5), ∆3 f (7), ∆4 f (7) and ∆5 f (3) given that
x 3 5 7 9 11 13
f (x) 10 27 36 43 46 51
14. Let y = Ax3 + Bx2 + Cx + D be a third degree polynomial which passes through the points (0, −1),
(1, 1), (2, 1) and (3, −2). Determine the values of the coefficients A, B, C and D.
15. Describe in detail the following iterative methods
1. Bisection method
2. Newton’s method
dy d2 y
16. Calculate the values of dx and dx2 at x = 0 and x = 5 from the following table
x 0 1 2 3 4 5 6
f (x) 1.3448 2.9781 3.2782 4.5899 5.9133 6.7051 7.0135
17. (a) (8 points) For some functions f (x) and g(x) and with the usual notation of operators ∆, ∇, δ, E,
µ, etc. Prove that
• ∆{f (x) · g(x)} = f (x) · ∆g(x) + g(x + h) · ∆f (x)
• ∇{f (x) · g(x)} = f (x) · ∇g(x) + g(x − h) · ∇f (x)
• Truncation error
• Finite differences
• Interpolating polynomial