Numerical Method 2075( Old Course)

Tribhuwan University
Institute of Science and Technology
2075( Old Course)
Bachelor Level / Third Semester / Science
Computer Science and Information Technology ( CSC207 )
( Numerical Method )
Full Marks: 60
Pass Marks: 24
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.

Attempt all questions:

1. What is error? Discuss various types of errors. Estimate a real root of the following nonlinear equation using bisection method or Newton's method correct up to two decimal places sin x - x2 - x + 3 = 0 (3 + 5)

8 marks view

2. How polynomial interpolation differs with Cubic Spline interpolation? Explain. Find the best fit curve of quadratic polynomial using least square approximation from following data.


8 marks view

3. (a) For the function estimate f'(2.1) and f''(2.7) [take h = 0.05] (3)

    (b) Evaluate using trapezoidal rule taking h = 0.1 and h = 0.2. Also improve your result using Romberg integration.(4)

8 marks view

4. Decompose the given matrix [A] into LU form. Then using decomposed matrices L and U solve the system of linear equation  Ax = b for given [b].(4 + 4)

OR

How can you calculate the inverse of a matrix? Explain. Solve the system of linear equations Ax = b for given [A] and [b] using Gauss elimination method. (use partial pivoting) (3 + 5)


8 marks view

5. (a) How can you solve higher order differential equation? Explain.        (3)

    (b) Solve the following differential equation within 1 ≤ x ≤ 2 using Runge-Kutta 4th order method.        (5)

                    

8 marks view

6. (a) Derive a difference equation to solve Laplace equation.(3) 

    (b) The steady-state two-dimensional heat-flow in a metal plate is defined by . Given the boundary conditions as shown in figure below. find the temperatures at interior points A, B, C, and D.(5)


8 marks view

7. Write an algorithm to solve non-linear equation using secant method. On the basis of your algorithm write a C-program that reads two initial guess from keyboard and displays the following information if the solution is obtained:(5 + 7)

        a) Calculated root of the equation

        b) Required number of iterations

        c) Functional value at calculated root

If solution is not obtained within 200 iterations your program should be terminated by displaying the following message:

        NO SOLUTION WITHIN 200 ITERATIONS

        TRY AGAIN WITH NEW INITIAL VALUES

12 marks view