You are on page 1of 1

KWAME NKRUMAH UNIVERSITY OF SCIENCE AND TECHNOLOGY

COLLEGE OF SCIENCE
FACULTY OF PHYSICAL SCIENCES
DEPARTMENT OF COMPUTER SCIENCE
CSM 258: NUMERICAL METHODS AND COMPUTATIONS

Homework Assignment 2

Use the Radian Measure for all trigonometric computations.

To be submitted to the TA in hardcopy on/before 6:00 pm of 19/06/2023

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

You might also like