Professional Documents
Culture Documents
Home Work Assignment 2
Home Work Assignment 2
COLLEGE OF SCIENCE
FACULTY OF PHYSICAL SCIENCES
DEPARTMENT OF COMPUTER SCIENCE
CSM 258: NUMERICAL METHODS AND COMPUTATIONS
Homework Assignment 2
1. Solve Z 3
f (x)dx; where f (x) = Axex
0
using Romberg method with three sub-intervals. Compute your initial values using the
composite Simpson’s 1/3 method, after two iterations find the absolute error.
2. Solve Z 1
A
dx
−1 1 + x2
using Romberg method with h0 = 1. Compute your initial values using the composite
trapezium method. What is the relative error by taking ϵ = 1 × 10−5 .
Note: Each group is to replaceZ the value of A with their respective group number. Example group
3
27 will have their question as 27xex dx.
0