Candidates Are Required To Give Their Answers in Their Own Words As Far As Practicable
Candidates Are Required To Give Their Answers in Their Own Words As Far As Practicable
Candidates Are Required To Give Their Answers in Their Own Words As Far As Practicable
Tribhuvan University
Institute of Science and Technology
2066
Bachelor Level/ Second Year/ Third Semester/ Science Full Marks: 60
Computer Science and Information Technology (CSc. 204) Pass Marks: 24
(Numerical Method) Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.
1. Define the fixed-point iteration method. Given the function 𝑓(𝑥) = 𝑥 2 − 2𝑥 − 3 = 0, rearrange the function in such
a way that the iteration method converses to its roots. (2+3+3)
2. What do you mean by interpolation problem? Define divided difference table and construct the table from the
following data set. (2+2+4)
Xi 3.2 2.7 1.0 4.8 5.6
Fi 22.0 17.8 14.2 38.3 51.7
OR
Find the least squares line that fits the following data.
X 1 2 3 4 5 6
Y 5.04 8.12 10.64 13.18 16.20 20.04
6x1 – 2x2 + x3 = 11
-2x1 + 7x2 + 2x3 = 5
X1 + 2x2 – 5x3 = -1
5. Write an algorithm and computer program to fit a curve 𝑦 = 𝑎𝑥 2 + 𝑏𝑥 + 𝑐 for given sets of (xi, yi, g. 0 = 1, …, x)
values by least square method. (4+8)
2 2 2
6. Derive a difference equation to represent a Poison’s equation. Solve the Poison’s equation ∇ 𝑓 = 2𝑥 𝑦 over the
domain 0 ≤ 𝑥 ≤ 3, 0 ≤ 𝑦 ≤ 3 with 𝑓 = 0 on the boundary and h = 1. (3+5)
7. Define ordinary differential equation of the first order. What do you mean by initial value problem? Find by Taylor’s
series method, the values of y at x = 0.1 and x = 0.2 to find places of decimal form
𝑑𝑦
= 𝑥 2 𝑦 − 1, when y(0) = 1 (2+6)
𝑑𝑥
IOST, TU
Prepared By ASCOL CSIT 2070 Batch
Tribhuvan University
Institute of Science and Technology
2067
Bachelor Level/ Second Year/ Third Semester/ Science Full Marks: 60
Computer Science and Information Technology (CSc. 204) Pass Marks: 24
(Numerical Method) Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.
1. Discuss methods of Half Interval and Newton’s for solving the nonlinear equation f(x) = 0. Illustrate the methods by
figure and compare them stating their advantages and disadvantages. (8)
2. Derive the equation for Lagrange’s interpolating polynomial and find the value of f(x) at x = 1 for the following:
(4+4)
X -1 -2 2 4
F(x) -1 -9 11 69
3. Write Newton-cotes integration formulas in basic form for x = 1, 2, 3 and give their composite rules. Evaluate
1.5 2
𝐼 = ∫.2 𝑒 −𝑥 𝑑𝑥 using the Gaussian integration three point formula. (4+4)
4. Solve the following algebraic system of linear equations by Gauss-Jordan algorithm. (8)
0 2 0 1 x1 0
2 2
3 2 x 2 = 2
4 3 0 1 x 7
3
6 1 6 5 x 4 6
5. Write an algorithm and program to solve system of linear equations using Gauss-Seidel iterative method. (4+8)
6. Explain the Picard’s proves of successive approximation. Obtain a solution upto the fifth approximation of the
equation
𝑑𝑦
= 𝑦 + 𝑥 such that y = 1 when x = 0
𝑑𝑥
using Picard’s process of successive approximations . (2+6)
7. Define a difference equation to represent a Laplace’s equation. Solve the following Laplace equation
𝜕2 𝑢 𝜕2 𝑢
𝜕𝑥 2
+ 𝜕𝑦 2
=0 within 0 ≤ 𝑥 ≤ 3, 0 ≤ 𝑦 ≤ 3
4 = 200
3
2
4 = 200 4 = 100
1
0 1 2 3 x
4 = 100 (3 + 5)
OR
Derive a difference equation to represent a Poison’s equation. Solve the Poison’s equation
∇2 𝑓 = 2𝑥 2 𝑦 2
Over the domain 0 ≤ 𝑥 ≤ 3, 0 ≤ 𝑦 ≤ 3 with 𝑓 = 0 on the boundary and h = 1. (3+5)
IOST, TU
Prepared By ASCOL CSIT 2070 Batch
Tribhuvan University
Institute of Science and Technology
2068
Bachelor Level/ Second Year/ Third Semester/ Science Full Marks: 60
Computer Science and Information Technology (CSc. 204) Pass Marks: 24
(Numerical Method) Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.
1. Define the types of errors in numerical calculations. Derive the formula for secant method and illustrate the method
by figure. (4+4)
2. Define the linear least squares approximations. Give the data set (xi, yi) as (20.5, 765), (32.7, 826), (51.0, 873), (73.2,
942), (95.7, 1032) find the linear least square to fit given data. (2+6)
1 −𝑥 2
3. Evaluate 𝐼 = ∫0 𝑒 𝑑𝑥 using trapezoidal rule with n=10. Also evaluate the same integral using Grossion 3 point
formula and compare the result. (4+4)
4. Solve the following system of linear equations using Gauss-elimination method (use partial pivoting if necessary);
2x2 + x4 = 0
2x1 + 2x2 + 3x3 + 2x4 = -2
4x1 – 3x2 + x4 = -7
6x1 + x2 – 6x3 – 5x4 = 6 (8)
OR
What do you mean by eigen -value eigen- vector problems? Find the largest eigen value correct to two significant
digits and corresponding eigen vectors of the following matrix using power method.
2 4 1
𝐴 = [ 0 1 3] (2+6)
1 0 3
5. Write an algorithm and program to solve system of linear equations using Gauss- Jordan method. (4+8)
6. Apply Runge-Kutta method of second order and fourth order to find an approximate value of y when x = 0.2 given
that
𝜕𝑦
= 𝑥 + 𝑦 𝑎𝑛𝑑 𝑦(0) = 1.
𝜕𝑥
(8)
7. How can you solve Laplace’s equation? Explain. The steady-state two dimensional heat flow in a metal plate is
𝜕2 𝑇 𝜕2 𝑇
defined by 𝜕𝑥 2
+ 𝜕𝑦 2
= 0.
A steel plate of size 30 x 30cm is given. Two adjacent sides are placed at 100℃ and other side held at 0℃ . Find the
temperature at interior points, assuming the grid size of 10 x 10cm.
(3+5)
IOST, TU
Prepared By ASCOL CSIT 2070 Batch
Tribhuvan University
Institute of Science and Technology
2069
Bachelor Level/ Second Year/ Third Semester/ Science Full Marks: 60
Computer Science and Information Technology (CSc. 204) Pass Marks: 24
(Numerical Method) Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.
1. Derive the formula to solve nonlinear equation using secant method. Using your formula estimate a real root of
following nonlinear equation using secant method correct up to two decimal places x2+ ln x = 3. (3+5)
2. Estimate 𝑓(3) from the following data using Cubic Spline interpolation.
x 1 2.5 4 5.7
f(x) -2.0 4.2 14.4 31.2
OR
Find the best fitting quadratic polynomial from following data using least square approximation.
x -2 -1.2 0 1 1.2 2.5 3 4.5 6.3
f(x) 10.39 2.96 -2.0 -2.63 -2.46 0.83 3.1 12.8 30.4
3. a) For the function 𝑓(𝑥) = 𝑒 𝑥 √𝑠𝑖𝑛𝑥 + 𝑙𝑛𝑥 estimate f’(6.3) and f”(6.3) [take h = 0.01] (4)
2
b) Evaluate ∫1 (𝑙𝑛𝑥 + 𝑥 2 𝑠𝑖𝑛𝑥)𝑑𝑥 using Gaussian integration 3 point formula. (4)
4. Solve the following set of equation using Gauss elimination or Gauss Jordan method
3x1 + 5x2 - 3x3 + x4 = 16
2x1 + x2 + x3 + 4x4 = 9
3x1 – 4x2 – x4 = 1
2x1 + x2 – 3x3 + 9x4 = 5
(8)
5. How can you solve higher order differential equation? Explain. Solve the following differential within 0 ≤ 𝑥 ≤ 1
using Heun’s method.
𝑑2 𝑦 𝑑𝑦
𝑑𝑥 2
+ 3 𝑑𝑥 + 2𝑥𝑦 = 1 with y(0)=1 and y’(0) = 1 (take h = 0.5)
(3+5)
6. a) How can you obtain numerical solution of a partial differential equation? Explain. (3)
𝜕2 𝑇 𝜕2 𝑇
b) The steady-state two-dimensional heat-flow in a metal plate is defined by 𝜕𝑥 2
+ 𝜕𝑦 2
= 0. Given the boundary
conditions as shown in figure below, find the temperature at interior points T1, T2, T3 and T4. (5)
100 100 100
300
100 T1 T2
T3 T4 300
100
100 300
300 300 300
7. Write an algorithm and C-program code to solve non-linear equation using Newton’s method. Your program should
read an initial guess from keyboard and display the followings if the solution is obtained: (5+7)
IOST, TU
Prepared By ASCOL CSIT 2070 Batch
Tribhuvan University
Institute of Science and Technology
2070
Bachelor Level/ Second Year/ Third Semester/ Science Full Marks: 60
Computer Science and Information Technology (CSc. 204) Pass Marks: 24
(Numerical Method) Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.
1. What is bracketing and non-bracketing method? Explain with the help of example. Estimate a real root of following
nonlinear equation using bisection method correct up to two significant figures
𝑥 2 𝑠𝑖𝑛𝑥 + 𝑒 −𝑥 = 3. (3+5)
2. Define interpolation. Find the functional value at x = 3.6 from the following data using forward difference table.
3. Derive Simpson’s 1/3 rule to evaluate numerical integration. Using this formula evaluate
1.2
∫0.2 (𝑥 2 + 𝑙𝑛𝑥 − 𝑠𝑖𝑛𝑥)𝑑𝑥. [Take h = 0.1] (4+4)
4. What is pivoting? Why is it necessary? Explain. Solve the following set of equations using Gauss elimination or
Gauss Seidel method.
x1 + 10x2 +x3 = 24
10x1 + x2 + x3 = 15
x1 + x2 + 10x3 = 33
(3+5)
5. Compare Euler’s method with Heun’s method for solving differential equation. Obtain y(1.5) from given differential
equation using Runge-Kutta 4th order method.
𝑑𝑦
𝑑𝑥
+ 2𝑥 2 𝑦 = 1 with y(1) = 0 (take h = 0.25) (4+4)
𝑶𝑹
Solve the following boundary value problem using shooting method.
𝑑2 𝑦
𝑑𝑥 2
− 2𝑥 2 𝑦 = 1, with y(0) = 1 and y(1) = 1 [Take h = 0.5]. (8)
𝜕2 𝑓 𝜕2 𝑓
6. Solve the equation 𝜕𝑥 2
+ 𝜕𝑦 2
= 3𝑥 2 𝑦 over the square domain 0 ≤ 𝑥 ≤ 1.5 and 0 ≤ 𝑦 ≤ 1.5 with f=0 on the
boundary [Take h = 0.5]. (8)
7. Write an algorithm and C-program to approximate the functional value at any given x from given n no. of data using
Lagrange’s interpolation. (5+7)
IOST, TU
Prepared By ASCOL CSIT 2070 Batch
Tribhuvan University
Institute of Science and Technology
2071
Bachelor Level/ Second Year/ Third Semester/ Science Full Marks: 60
Computer Science and Information Technology (CSc. 204) Pass Marks: 24
(Numerical Method) Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.
1. How is the bisection method convergent to a root of an equation? Apply the bisection method to find a root of the
equation
𝑥𝑡𝑎𝑛𝑥 − 1 = 0 (3+5)
2. Define interpolation. Find the Lagrange interpolation polynomial to fit the following data. Estimate the value
i 0 1 2 3
xi 0 1 2 3
𝑒 𝑥𝑖 0 1.7183 6.3891 19.0855
of e1.9 (1+6+1)
3. Derive Simpson’s 1/3 rule to evaluate numerical integration. Using this formula evaluate
e
2
x2
1 dx with n = 8. (4+4)
0
4. What do you mean by ill-conditioned systems? Solve the following system using Dolittle LU decomposition method.
3x1 + 2x2 + x3 = 24
2x1 + 3x2 + 2x3 = 14
x1 + 2x2 + 3x3 = 14
(2+6)
5. Solve the following boundary value problem using shooting method.
𝑑2 𝑦
− 2𝑥 2 𝑦 = 1, with y(0) = 1 and y(1) = 1 [Take h = 0.5]. (8)
𝑑𝑥 2
6. Write the finite difference formula for solving Poisson’s equation. Hence solve the Poisson’s equation
∇2 𝑓 = 2𝑥 2 𝑦 2
over the domain 0 ≤ 𝑥 ≤ 3 and 0 ≤ 𝑦 ≤ 3 with f = 0 on the boundary and h = 1. (1+7)
7. Write an algorithm and a C-program for the fixed point iteration method to find the roots of non-linear equation. (4+8)
OR
Write an algorithm and a C-program for the Lagrange’s interpolation to approximate the functional value at any given
x from given n data. (4+8)
IOST, TU
©ASCOL CSIT 2070 Batch
Tribhuvan University
Institute of Science and Technology
2072
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.
1. What are the sources of errors? Discuss various types of errors. Find the roots of the equation
x 2 + 5.6 x − 10 =
0 by trial and error method up to 4 significant digits. (1+3+4)
2. Describe Newton’s method and its convergence. Find the root of equation f ( x) =e x − 4 x 2 =0 using
Newton method up to 5 decimal places. (4+4)
3. What do you mean by interpolation and approximation? Use Lagrange interpolation to estimate the value
of f(0.6) from the following table of values. (2+6)
x 0.4 0.5 0.7 0.8
f(x) -0.916 -0.693 -0.357 -0.223
4. Using Newton’s divided difference interpolating polynomial estimate the value of f(x) at x = 2.25 for the
function defined as
x 0.5 0.2 1.4 2.2 3.0
f(x) -10.25 -3.768 5.976 28.972 79.0
5. Write algorithm for Gauss- Seidel method for solving the system of linear equations. Also solve the
following system of linear equations using that method. (4+4)
10 x1 + x2 + x3 =
12
x1 + 10 x2 − x3 =
10
x1 − 2 x2 + 10 x3 =
9
6. What do you understand by the partial differential equation? Illustrate it with practical example and derive
difference equation. (8)
OR
Find the solution of following differential equations using Taylor series method.
y' = ( x 3 + xy 2 )e( − x ) , y(0) =
1, to find y at x = 0.1, 0.2, 0.3.
7. Write an algorithm and program for computer to obtain the solution of differential equation using
Runge-Kutta Method. {5+7)
IOST, TU