Assignment
Assignment
CHAPTER 4
1. (i) Prepare the divided difference table using the data given in Table 1.
Table 1
x 1 2 3 4
f ( x) 1 1 0 -1
(ii) Transform the data from divided difference table obtained in Q1 (i) into
equation of S(x) using natural cubic spline polynomial.
Times 0 1 2 3 4
(sec), xi
f (xi) 0 1 8 27 64
3. Table 3 tabulates the values of distance travelled by a motorcycle at various times from
a junction.
Table 3
Time, t
3 5 7 9 11
(minute)
Distance
traveled, x 4.6 8.03 11.97 16.89 19.9
(km)
(i) Detect the velocity of the motorcycle at t=3 minutes and t=5 minutes using
three (3) point forward difference formula with h 2 minutes.
dv dx
[Hint: acceleration, a and velocity, v ].
dt dt
4. Given the distance in equation of s= f(t) 0.0658t2 + 1.2672t + 0.0563 where t is time.
(i) Convert the equation into the table form with interval of -1 ≤ t ≤ 1 with step
size of h = 0.5.
(ii) Given the velocity, v=ds/dt. Using the appropriate difference formulas given
in Formulae, analyse the velocity at t = 0.5 by using two point forward
difference, three point central difference and three point backward
difference
5. Figure 1 shows the data of velocity versus time.
30
∫ √2 + 3𝑥 3 𝑑𝑥
0
As a civil engineer, you are appointed to design the cross-sectional area of the river in order
to predict the water flow rate during the rainy or monsoon season using 2-points and 3-
points Gauss Quadrature. Assume that the width of the river is 30 meter.
5
7. Analyse the approximate value for
1
1 x 2 dx using trapezoidal rule. Given
subintervals is eight (8). Analyse the relative error in percentage. Examine the
calculations in two (2) decimal places with chopping off technique.