0% found this document useful (0 votes)
32 views1 page

Assignment3 - CSE330 Spring2024

The document outlines Assignment-3 for CSE 330, focusing on numerical methods for evaluating derivatives and truncation errors. It includes specific tasks such as calculating derivatives using forward and central difference methods, determining truncation error bounds, and applying Richardson extrapolation. Additionally, it provides a data set for computing derivatives and relative errors based on a given function.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

Assignment3 - CSE330 Spring2024

The document outlines Assignment-3 for CSE 330, focusing on numerical methods for evaluating derivatives and truncation errors. It includes specific tasks such as calculating derivatives using forward and central difference methods, determining truncation error bounds, and applying Richardson extrapolation. Additionally, it provides a data set for computing derivatives and relative errors based on a given function.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CSE 330: Spring 2024

Assignment-3 [CO4]
Total Marks: 20

1. Consider the function f(x) = x ln(x). Now answer the following:

(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).

x 1.1 1.2 1.3

f(x) 0.2902 0.1669 0.01131

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:

a) (3 marks) Compute D(1)0.2 at x = 2.7 using Richardson extrapolation method up to 4


significant figures.
b) (2 marks) Compute D(2)0.2 at x = 2.7 using Richardson extrapolation method up to 4
significant figures.

You might also like