0% found this document useful (0 votes)
17 views

Assignment (C S)

Cs assignment

Uploaded by

Arvind Ranjan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Assignment (C S)

Cs assignment

Uploaded by

Arvind Ranjan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Unique Paper Code : 42357618 Date:16.04.

2024

Name of Paper : DSE -Numerical Method(Assignment)


Name of Course : B.Sc. (Prog.) Physical Sciences(Computer Science)
Q 1. Define the local truncation error. If X = 2.536, find the absolute error and relative error when
X is truncated to two decimal digits.
Q 2. Given the following equations:

(i) 𝑥 4 − 𝑥 − 10 = 0
(ii) 𝑥 − 𝑒 −𝑥 = 0
Determine the initial approximation to find the smallest positive root. Use these to find the roots
correct to three decimal places with the following methods:
(a) Bisection Method
(b) The Regula-Falsi Method
(c) The Secant Method
(d) The Newton-Raphson Method

Q 3. Solve the following system of equations

2x+ y+ 3z = 1
4x-3y +5z = -7
-3x+ 2y+4z = -3
using Gauss Jordan Method.
Q 4. Solve the following system of equations AX= b where
2 2 1 1
A =[4 2 3], b = [2]
1 1 1 3
by Gauss elimination method using partial pivoting.

Q. 5 Perform three iterations of Gauss-Seidel method to solve the linear system

-3x+ y+ 0z = -2
2x-3y +z = 0
0x+2y-3z = -1
Take the initial approximation as (𝑥, 𝑦, 𝑧) = (0, 0, 0).
Q. 6 Perform three iterations of Jacobi method to solve the linear system
2x- y = 1
-x+2y -z = 0
-y+2z-w = 0
-z+2w = 1
Take the initial approximation as (𝑥, 𝑦, 𝑧) = (0.5, 0.5, 0.5, 0.5).

Q 7. Consider the following table:


𝑥 -1 1 4 7
𝑓(x) -2 0 63 342

Use Newton divided difference formula to calculate the interpolating polynomial and
give an estimate for 𝑓(5) .
Q 8. Consider the following table:

𝑥 -1 2 4 5
𝑓(x) -5 13 255 625

Use Lagrange’s interpolation formula to calculate the interpolating polynomial and


give an estimate for 𝑓(3) .

Q 9. Consider the following table:

𝑥 0.1 0.2 0.3 0.4 0.5


𝑓(x) 1.40 1.56 1.76 2.00 2.28

Use Gregory-Newton forward difference formula to calculate the interpolating


polynomial and give an estimate for 𝑓(0.25) .

Q 10. Construct the interpolating polynomial by using Gregory- Newton backward difference
interpolation formula for the given data:

𝑥 1 1.5 2.0 2.5


𝑓(x) 2.7183 4.4817 7.3891 12.1825

Estimate the value of 𝑓(2.25) .

Q.11 Show that


1/2
ẟ2
(i) µ = [1 + ]
4

(ii) ẟ = 𝐸1/2 - 𝐸 −1/2


Q 12. Obtain the piecewise linear interpolating polynomial for

𝑥 0 0.5 1 3.5

Y 1 2 1 0

Also interpolate at 𝑥 = 2.0 .


6
ⅆ𝑥
Q 13. Compute the value of ∫ using trapezoidal rule taking six equal subintervals.
1+𝑥 2
0

Q 14. Apply Simpson’s one third rule to evaluate the integral


5
ⅆ𝑥
∫ 4𝑥+5
0

Calculate the difference between the exact value and the approximate value.
Q. 15 Apply Midpoint method to find approximate solution of the initial value problem
ⅆ𝑦
= y + x, 𝑦(0) = 1, 0 ≤ 𝑥 ≤ 0.3, ℎ = 0.1 .
ⅆ𝑥

Q 16. Apply Euler’s method to find approximate solution of the initial value problem
ⅆ𝑦 𝑥−𝑦
= , 𝑦(0) = 1, 0 ≤ 𝑥 ≤ 3, ℎ = 0.5 .
ⅆ𝑥 2

Q 17. Find an approximation to 𝑦(0.2), for the initial value problem


ⅆ𝑦
= 𝑥 + 2𝑦, 𝑦(0) = 0
ⅆ𝑥

using the Heun’s method with ℎ = 0.1. Compare with exact solution.
Note: Last date to submit this assignment is 01/05/2024.

You might also like