Computer Oriented Numerical Methods with Python (S2320C1) · Continuous Evaluation Test 2 · 5 October 2026 · 30 marks · 10:10 – 11:40 am ITM (SLS) Baroda University · B.Tech all branches, odd semester 2026-27 · Semester 3. Non-programmable calculator allowed. Questions transcribed from the original paper. Solutions are written by CampusLoop and every number was checked by computer; check the method against your class notes.
Q1. Select the correct option [3]
1. If a number is correct to n significant digits, then the relative error is: Answer: (d) < ½ × 10⁻ⁿ⁺¹.
2. Which method can be used for both equal and unequal intervals? (a) Lagrange's method · (b) Divided difference method · (c) Cubic spline method · (d) Newton's method Answer: (a) Lagrange's method (the divided difference formula also works for both).
3. Which relation between the operators is correct? Answer: (a) Δ = E − 1.
4. The process of computing the value of a function outside the given arguments is called: (a) interpolation · (b) inverse interpolation · (c) cubic spline · (d) extrapolation Answer: (d) Extrapolation.
5. Interpolation methods are: (a) Linear · (b) Piecewise constant · (c) Polynomial · (d) All of the mentioned Answer: (d) All of the mentioned.
6. The Gauss-Jacobi method is applicable if the system matrix is: Answer: (b) Diagonally dominant.
Q2. Attempt any three [9]
Q2(a) Jacobi iteration: 5x − y + z = 10, 2x + 4y = 12, x + y + 5z = −1 (two decimals).
The system is diagonally dominant. x = (10 + y − z)/5, y = (12 − 2x)/4, z = (−1 − x − y)/5:
| k | x | y | z |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 2.0000 | 3.0000 | −0.2000 |
| 2 | 2.6400 | 2.0000 | −1.2000 |
| 3 | 2.6400 | 1.6800 | −1.1280 |
| 4 | 2.5616 | 1.6800 | −1.0640 |
| 5 | 2.5488 | 1.7192 | −1.0483 |
| 6 | 2.5535 | 1.7256 | −1.0536 |
| 7 | 2.5558 | 1.7232 | −1.0558 |
x = 2.56, y = 1.72, z = −1.06 (exact solution 2.5556, 1.7222, −1.0556).
Q2(b) For the table x = 1, 3, 5, 7, 9; y = 8, 12, 21, 36, 62, find ∇y(7) and ∇²y(9).
| x | y | ∇y | ∇²y | ∇³y | ∇⁴y |
|---|---|---|---|---|---|
| 1 | 8 | ||||
| 3 | 12 | 4 | |||
| 5 | 21 | 9 | 5 | ||
| 7 | 36 | 15 | 6 | 1 | |
| 9 | 62 | 26 | 11 | 5 | 4 |
- ∇y(7) = y(7) − y(5) = 36 − 21 = 15.
- ∇²y(9) = ∇y(9) − ∇y(7) = 26 − 15 = 11.
Q2(c) Absolute error if X = 0.00545828 is (i) truncated (ii) rounded to three decimal (significant) digits.
Here "three decimal digits" means three significant digits (5, 4, 5):
- (i) Truncated: X₁ = 0.00545 → absolute error = 0.00545828 − 0.00545 = 0.00000828 = 8.28 × 10⁻⁶.
- (ii) Rounded: X₁ = 0.00546 → absolute error = |0.00545828 − 0.00546| = 0.00000172 = 1.72 × 10⁻⁶.
Rounding gives the smaller error.
Q2(d) Gauss-Seidel: 30x − 2y + 3z = 75, x + 17y − 2z = 48, x + y + 9z = 15 (two decimals).
x = 2.58, y = 2.80, z = 1.07. Full table: CONMP CET-1 2026, Q3(e).
Q2(e) Establish (a) Δ = E − 1 (b) E = e^(hD) (c) Δ − ∇ = δ².
Full proofs: CONMP end-sem 2025, Q2.5.
Q3. Attempt any three [15]
Q3(a) Using Stirling's formula, find y₃₅ given y₂₀ = 512, y₃₀ = 439, y₄₀ = 346, y₅₀ = 243.
x₀ = 30, p = 0.5: y = 439 + 0.5 × (−93 − 73)/2 + (0.25/2)(−20) = 395 (to second differences; Bessel's formula gives 394.375). Full working: CONMP end-sem 2025, Q2.4.
Q3(b) Pressure P at t = 142 °C and t = 175 °C.
Newton forward at 142: P ≈ 3.899; Newton backward at 175: P ≈ 9.100 kgf/cm². Full working: CONMP end-sem 2025, Q2.3.
Q3(c) Viscosity of oil at 140° using Lagrange's formula.
Data: (110, 10.8), (130, 8.1), (160, 5.5), (190, 4.8); x = 140.
- L₀ = (140−130)(140−160)(140−190) / [(110−130)(110−160)(110−190)] = (10)(−20)(−50)/[(−20)(−50)(−80)] = 10000/−80000 = −0.125
- L₁ = (30)(−20)(−50)/[(20)(−30)(−60)] = 30000/36000 = 0.833333
- L₂ = (30)(10)(−50)/[(50)(30)(−30)] = −15000/−45000 = 0.333333
- L₃ = (30)(10)(−20)/[(80)(60)(30)] = −6000/144000 = −0.041667
v(140) = −0.125(10.8) + 0.833333(8.1) + 0.333333(5.5) − 0.041667(4.8) = −1.35 + 6.75 + 1.833333 − 0.2 = 7.0333.
Q3(d) Visible horizon: y at x = 160 ft and x = 410 ft.
Newton forward at 160: y ≈ 13.46; Newton backward at 410: y ≈ 21.53 nautical miles. Full table: CONMP end-sem 2025, Q2.6.
Q3(e) log₁₀ 656 by Lagrange's formula.
log₁₀ 656 ≈ 2.8168. Full working: CONMP end-sem 2025, Q2.1.