Assignment3 - CSE330 Spring2024
Assignment3 - CSE330 Spring2024
Assignment-3 [CO4]
Total Marks: 20
(a) (2 marks) Evaluate the numerical derivative of f(x) at x = 1.0 with step size h = 0.1 using the
forward and central difference methods up to 5 significant figures.
(b) (4 marks) Compute the upper bound of the truncation error of f(x) at x = 1.0 using h = 0.1 for
the backward and central difference methods up to 5 significant figures.
1
(c) (4 marks) Deduce an expression for 𝐷ℎ from 𝐷ℎ by replacing h by (4h/3) using the
Richardson extrapolation method.
2. (3+2 marks) The following Data set is generated by the function f(x) = x cos(x) − x + sin(x).
Based on the above data, compute f′(1.2) using the Central Difference method, and also
calculate the relative error. Use 4 significant figures.
3 7𝑥
3. Consider the function f(x) = 4𝑥 − 9𝑒 . Now answer the following: