CSC212 · TU past paper
Numerical Method 2077 question paper
The complete TU 2077 exam paper for Numerical Method (CSC212), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- Q1.10 marksNumericalNewton's method and ConvergenceHideAnswer
Derive the formula for Newton Raphson Method. Solve the equation using Newton Raphson method. Assume error precision is 0.01. Discuss drawbacks of the Newton Raphson method. $x^2 + 4x - 9 = 0$ [10]
- Q2.10 marksRegression vs InterpolationHideAnswer
How interpolation differs from regression? Write down algorithm and program for Lagrange interpolation.[10]
- Q3.10 marksNumericalpivotingHideAnswer
Why partial pivoting is used with Naive Gauss Elimination method? Solve the following system of equations using Gauss Elimination method with partial pivoting? How Gauss Jordan method differs from Gauss elimination method? $2x + 2y - z = 6$, $4x + 2y + 3z = 4$, $x + y + z = 0$ [10]
- Q4.5 marksNumericalHorner's methodHideAnswer
Define the terms true error and relative error? Use Horner' method to evaluate polynomial at x = 3 and write down its algorithm. $2x^3 - 3x^2 + 5x - 2$ [5]
True Error and Relative Error + Horner's Method
Given Data
- Polynomial: $P(x) = 2x^3 - 3x^2 + 5x - 2$
- Evaluation point: $x = 3$
- Coefficients: $a_3 = 2,\ a_2 = -3,\ a_1 = 5,\ a_0 = -2$
Part 1: Definitions
True Error
True error is the difference between the exact (true) value of a quantity and its approximate (computed) value.
$$E_t = \text{True Value} - \text{Approximate Value}$$
It measures the actual (absolute) magnitude of the discrepancy in a numerical computation.
Relative Error
Relative error is the ratio of the true error to the true value, giving the error relative to the size of the exact quantity.
$$E_r = \frac{E_t}{\text{True Value}} = \frac{\text{True Value} - \text{Approximate Value}}{\text{True Value}}$$
Often expressed as a percentage:
$$E_r% = \left|\frac{\text{True Value} - \text{Approximate Value}}{\text{True Value}}\right| \times 100%$$
Part 2: Horner's Method
Concept
Horner's method reduces the number of multiplications by nesting coefficients:
$$P(x) = a_nx^n + \cdots + a_1x + a_0 = \big(\cdots((a_n x + a_{n-1})x + a_{n-2})\cdots\big)x + a_0$$
For our polynomial:
$$P(x) = ((2x - 3)x + 5)x - 2$$
Step-by-Step Evaluation at $x = 3$
Step Operation Result Start $b_3 = a_3$ $2$ 1 $b_2 = b_3 \cdot 3 + a_2 = 2(3) - 3$ $3$ 2 $b_1 = b_2 \cdot 3 + a_1 = 3(3) + 5$ $14$ 3 $b_0 = b_1 \cdot 3 + a_0 = 14(3) - 2$ $40$ $$\boxed{P(3) = 40}$$
Verification (Direct Substitution)
$$P(3) = 2(27) - 3(9) + 5(3) - 2 = 54 - 27 + 15 - 2 = 40 \checkmark$$
Algorithm for Horner's Method
Algorithm: Horner's Method for Polynomial Evaluation Input : Degree n, coefficients a[n], a[n-1], ..., a[0], value x Output : P(x) Step 1: Start Step 2: Read n, coefficients a[n] down to a[0], and value x Step 3: Set result = a[n] // leading coefficient Step 4: For i = n-1 down to 0 do result = result * x + a[i] End For Step 5: Print result as P(x) Step 6: StopTherefore, $P(3) = 40$.
- Q5.5 marksNumericalNewton's Interpolation using divided diffeHideAnswer
Newton's Forward Difference Table
Construct Newton's forward difference table for the given data points and approximate the value of $f(x)$ at $x = 15$.
$$\begin{array}{c|ccccc} x & 10 & 20 & 30 & 40 & 50 \ \hline F(x) & 0.173 & 0.342 & 0.5 & 0.643 & 0.766 \end{array}$$
[5]
- Q6.5 marksNumericalNon-linear Regression by fitting ExponentiHideAnswer
Fit the curve $y = ae^{bx}$ through the following data points.
x 1 2 3 4 y 1.65 2.70 4.50 7.35 [5]
- Q7.5 marksMatrix factorization and Solving System ofHideAnswer
Discuss the Doolittle LU decomposition method for matrix factorization. [5]
- Q8.5 marksDifferentiating Continuous FunctionsHideAnswer
Write down algorithm and program for the differentiating continuous function using three point formula. [5]
- Q9.5 marksSimpson's 1/3 ruleHideAnswer
How Simpson's 1/3 rule differs from Trapezoidal rule? Drive the formula for Simpson's 1/3 rule. [5]
- Q10.5 marksNumericalEuler's method and its accuracyHideAnswer
Approximate the solution of $y' = 2x + y$, $y(0) = 1$ using Euler's method with step size 0.1. Approximate the value of $y(0.4)$. [5]
- Q11.5 marksNumericalLaplacian equation and Poisson's equationHideAnswer
A plate of dimension 18cm x 18cm is subjected to temperatures as follows: left side at $100^\circ C$, right side at $200^\circ C$. Upper part at $50^\circ C$, and lower at $150^\circ C$. If square grid length of 6cm x 6cm is assumed, what will be the temperature at the interior nodes? [5]
- Q12.5 marksShooting method and its algorithmHideAnswer
How boundary value problems differs from initial value problems? Discuss shooting method for solving boundary value problem. [5]