Chapter 1
Numerical Methods
PU BCA past exam questions
Past questions and answers
44 questions set from this chapter. Most repeated first.
- 2024 Spring · 7 marks
Fit the following set of a data to a curve in the form of . Also calculate . (x and y values given in the paper: y = 16, 17.1, 8.7, 4.7, 2.6.)
Similar questions: Fit y = a e^{bx} (2023 Spring)
Answer
Taking with .
Linearise. From : , i.e. with , , .
| 1 | 16 | 1.2041 | 1 | 1.2041 |
| 2 | 17.1 | 1.2330 | 4 | 2.4660 |
| 3 | 8.7 | 0.9395 | 9 | 2.8185 |
| 4 | 4.7 | 0.6721 | 16 | 2.6884 |
| 5 | 2.6 | 0.4150 | 25 | 2.0749 |
| Sum 15 | 4.4637 | 55 | 11.2519 |
Normal equations: and .
Fitted curve: .
At : .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 8 marks
Fit a power curve of the form to the following data (x and y values given in the paper: y = 10.5, 2.15, 3.85, 8.30).
Similar questions: Fit y = a b^x, estimate y(7) (2024 Spring)
Answer
Taking with .
Linearise. , i.e. with , .
| 1 | 10.5 | 2.3514 | 1 | 2.3514 |
| 2 | 2.15 | 0.7655 | 4 | 1.5310 |
| 3 | 3.85 | 1.3481 | 9 | 4.0443 |
| 4 | 8.30 | 2.1163 | 16 | 8.4650 |
| Sum 10 | 6.5813 | 30 | 16.3917 |
Normal equations: and .
Fitted curve: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Derive the formula for Newton-Raphson method. Use the method to find the root of starting at . Perform four iterations.
Answer
Derivation. Let be an approximation to a root of . Expanding about by Taylor's series and keeping the first two terms:
We want , so . The improved root is :
Geometrically, is where the tangent to at cuts the -axis. The method converges quadratically near a simple root.
Numerical work. , , .
| 0 | 2.500000 | -3.375000 | 14.750000 | 2.728814 |
| 1 | 2.728814 | 0.404647 | 18.339270 | 2.706749 |
| 2 | 2.706749 | 0.003975 | 17.979471 | 2.706528 |
| 3 | 2.706528 | 0.000000 | 17.975881 | 2.706528 |
After four iterations the root is .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Use False position method to locate the root of between and up to 6 iterations.
Answer
Method. For , and , so a root lies in . The false position (regula falsi) formula is
The interval is then replaced by if (otherwise ).
| Iter | ||||
|---|---|---|---|---|
| 1 | 1.000000 | 2 | 1.166667 | -0.578704 |
| 2 | 1.166667 | 2 | 1.253112 | -0.285363 |
| 3 | 1.253112 | 2 | 1.293437 | -0.129542 |
| 4 | 1.293437 | 2 | 1.311281 | -0.056588 |
| 5 | 1.311281 | 2 | 1.318989 | -0.024304 |
| 6 | 1.318989 | 2 | 1.322283 | -0.010362 |
After 6 iterations the root is (the true root is ). Since every time, stays fixed and the convergence is linear.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Find a root of using the fixed point iteration method.
Answer
Method. Rewrite as and iterate . The iteration converges to a root near which .
Write as
For we have , so the iteration converges to the root (the other root has and is not reached by this form).
Take :
| 1 | 1.40000 |
| 2 | 1.59200 |
| 3 | 1.70689 |
| 4 | 1.78270 |
| 5 | 1.83560 |
| 6 | 1.87389 |
| 8 | 1.92374 |
| 12 | 1.97045 |
The values approach steadily (linear convergence, ratio about ). Hence a root is ; check: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Find the polynomial from given data (table of x and f(x) given in the paper) also calculate at using Newton's divided difference method.
Answer
Taking the tabulated data as at with .
Divided difference table
| 1st | 2nd | 3rd | ||
|---|---|---|---|---|
| 3.0 | 0.4771 | |||
| 0.1400 | ||||
| 3.2 | 0.5051 | -0.0200 | ||
| 0.1320 | 0.0000 | |||
| 3.4 | 0.5315 | -0.0200 | ||
| 0.1240 | ||||
| 3.6 | 0.5563 |
Newton's divided difference polynomial
The third difference is zero, so the polynomial is quadratic. Expanded:
At :
So .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
The temperature of metal stripe was measured at various time interval at heating and the values are tabulated in the paper (Time t in min; Temp T in C: 70, 83, 100, 124). If the relationship between temperature T and time t is of the form , estimate the temperature at and minute.
Answer
Taking the data as min and C.
Linearising. Put . Then is a straight line in , and the normal equations are
| 1 | 1.6487 | 70 | 2.7183 | 115.41 |
| 2 | 2.7183 | 83 | 7.3891 | 225.62 |
| 3 | 4.4817 | 100 | 20.0855 | 448.17 |
| 4 | 7.3891 | 124 | 54.5982 | 916.24 |
| Sum | 16.2377 | 377 | 84.7911 | 1705.44 |
Solving: , , so
Estimates
: C
: C
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Evaluate the definite integral given in the paper (limits 0.2 to 1.5) by Simpson's and Trapezoid rule's taking .
Answer
Taking the integral as with .
| 0 | 0.20000 | 3.02951 |
| 1 | 0.41667 | 2.79708 |
| 2 | 0.63333 | 2.93247 |
| 3 | 0.85000 | 3.25345 |
| 4 | 1.06667 | 3.71673 |
| 5 | 1.28333 | 4.31815 |
| 6 | 1.50000 | 5.07372 |
Trapezoidal rule
Simpson's 1/3 rule (valid since is even)
So Trapezoidal gives and Simpson's rule gives (Simpson is more accurate).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Solve the system of equations using Gauss elimination method:
Answer
Augmented matrix:
Forward elimination. , :
:
Back substitution
Solution: . Check in eq. 2: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Solve the system using Gauss-Jacobi method, performing three iterations starting from (0,0,0):
Answer
The system is diagonally dominant, so Jacobi iteration converges. Solve each equation for its diagonal variable and use only the previous iterate:
Start .
| Iteration | |||
|---|---|---|---|
| 1 | 1.2000 | 1.3000 | 1.4000 |
| 2 | 0.9300 | 0.9200 | 0.9000 |
| 3 | 1.0180 | 1.0240 | 1.0300 |
For example iteration 2: , , .
After three iterations ; the values are converging to the exact solution .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Find dominant eigen value and corresponding eigen vector of the matrix given in the paper.
Answer
Taking the matrix as and using the power method with . At each step compute , take its largest component as the eigenvalue estimate and divide by it.
| 0 | 7 | ||
| 1 | 5.2857 | ||
| 2 | 5.0541 | ||
| 3 | 5.0107 | ||
| 4 | 5.0020 |
The iterates converge to
Check: . The characteristic equation gives , so 5 is dominant.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Using Euler's method solve the given differential equation , , , with for
Answer
Let . Then with , .
Euler's formulas: , .
Step 1 ():
Step 2 ():
| 0 | 0 | 1 |
| 0.2 | 0.2 | 1.8 |
| 0.4 | 0.56 | 2.4 |
Hence .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Solve the given differential equation using Runge Kutta second order method: , , (take )
Answer
, , . Second-order Runge-Kutta (Heun):
| 1.00 | 2.0000 | 1.0000 | 1.2000 | 3.1000 |
| 1.25 | 3.1000 | 1.2400 | 1.4467 | 4.4433 |
| 1.50 | 4.4433 | 1.4811 | 1.6927 | 6.0302 |
| 1.75 | 6.0302 | 1.7229 | 1.9383 | 7.8608 |
Hence . (The exact solution gives .)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Solve: over the square mesh with sides , with on the boundary and .
Answer
Here on with on the boundary and . The interior nodes are .
The five-point formula for gives
so with right-hand sides at .
By symmetry . Let , , (boundary values are 0):
So , . Substituting:
Hence .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 5 marks
Write short notes on: Cubic spline interpolation
Answer
Cubic spline interpolation fits a separate cubic polynomial on each subinterval of the data points , joined so the curve is smooth.
Conditions
- and (passes through the points).
- (continuous slope).
- (continuous curvature).
- End conditions: for a natural spline .
Form. With and :
The come from the tridiagonal system
Advantage. It avoids the oscillation of a single high-degree polynomial and gives a smooth curve, widely used in curve design and graphics.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 5 marks
Write short notes on: Newton Cote's Quadrature formula
Answer
Newton-Cotes quadrature approximates by integrating the Lagrange interpolating polynomial through equally spaced points , .
The weights depend only on . The common cases are:
- , Trapezoidal rule:
- , Simpson's 1/3 rule:
- , Simpson's 3/8 rule:
Composite versions apply the rule on many sub-intervals; e.g. composite Simpson: with even.
Notes. A rule with even is exact for polynomials of degree ; with odd, degree . For large some weights become negative, so low-order composite rules are preferred.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 5 marks
Write short notes on: ODEs Vs PDEs
Answer
| Basis | ODE | PDE |
|---|---|---|
| Unknown | Function of one independent variable, | Function of two or more variables, |
| Derivatives | Ordinary derivatives only | Partial derivatives |
| Example | ||
| Conditions | Initial value or boundary value at points | Boundary and initial conditions on curves/regions |
| Numerical methods | Euler, Heun, Runge-Kutta, shooting | Finite differences on a mesh (five-point formula, Crank-Nicolson) |
| Models | Population growth, circuits, motion | Heat flow, waves, potential problems |
PDEs of second order are classified as elliptic (Laplace, Poisson), parabolic (heat equation) and hyperbolic (wave equation). ODEs need only a step-by-step march in one variable, whereas PDEs need a grid in several variables and give large systems of equations.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Explain different types of error in numerical calculation. Find out the root of nonlinear equation , correct upto three decimal places.
Answer
Types of errors
- Inherent (data) error: present in the input data because of measurement or earlier approximation.
- Round-off error: caused by representing numbers with a finite number of digits (e.g. ).
- Truncation error: caused by cutting an infinite process short, e.g. keeping only a few terms of a Taylor series.
- Absolute error: .
- Relative error: ; percentage error .
- Blunders/Modelling errors: human mistakes or wrong mathematical models.
Root of by Newton-Raphson. and , so a root lies in ; since , take . .
| 0 | 1.500000 | 3.750000 | 21.5000 | 1.325581 |
| 1 | 1.325581 | 0.384872 | 17.1476 | 1.303137 |
| 2 | 1.303137 | 0.005999 | 16.6141 | 1.302776 |
| 3 | 1.302776 | 0.000002 | 16.6056 | 1.302776 |
The root, correct to three decimals, is . (Indeed , giving .)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
Find the root of equation , correct up to 3 decimal place using NR Method.
Answer
Let (from ), . Since and , a root lies in . Take (radians).
| 0 | 0.500000 | -0.020574 | 1.877583 | 0.510958 |
| 1 | 0.510958 | -0.000029 | 1.872276 | 0.510973 |
| 2 | 0.510973 | 0.000000 | 1.872269 | 0.510973 |
The last two iterates agree to three decimals, so the root is .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Solve the following system of a linear equation by Gauss Elimination Method. Also apply partial pivoting if necessary.
Answer
Augmented matrix:
Pivoting. The largest entry in column 1 is 4, so interchange :
Eliminate : , :
In column 2 the pivot 1 is already the larger, so no swap is needed. :
Back substitution
Solution: . Check eq. 1: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
Solve the following system of linear equations by relaxation method.
Answer
Residuals: , , . Start from , so . At each step the largest residual is reduced to zero by changing the corresponding variable by ; the other residuals are updated using the column of the matrix.
| Step | Change | ||||||
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | -12 | 20 | 3 | |
| 1 | 0 | 5 | 0 | -22 | 0 | 18 | |
| 2 | -4.4 | 5 | 0 | 0 | -4.4 | 26.8 | |
| 3 | -4.4 | 5 | 2.68 | -2.68 | -9.76 | 0 | |
| 4 | -4.4 | 2.56 | 2.68 | 2.2 | 0 | -7.32 | |
| 5 | -4.4 | 2.56 | 1.95 | 2.93 | 1.46 | 0 | |
| 6 | -3.81 | 2.56 | 1.95 | 0 | 2.05 | -1.2 | |
| 7 | -3.81 | 3.07 | 1.95 | -1.04 | 0 | 0.33 | |
| 8 | -4.02 | 3.07 | 1.95 | 0 | -0.2 | 0.75 | |
| 9 | -4.02 | 3.07 | 2.02 | -0.06 | -0.34 | 0 | |
| 10 | -4.02 | 2.99 | 2.02 | 0.1 | 0 | -0.19 |
The residuals are now small, giving
Check: ; ; .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Solve the following linear equation by LU factorization method.
Answer
Write (Doolittle, unit diagonal in ) for
Factorisation. Row 1 of : . Multipliers: , .
, , , .
Forward substitution , :
, ,
Back substitution :
Solution: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
The following table gives the population of a town during the last six census. Estimate the change in population from 1845 to 1885. (Census years 1841, 1851, 1861, 1871, 1881, 1891 with populations in the paper.)
Answer
Taking populations (in thousands) for 1841, 1851, ..., 1891 ().
Difference table
| Year | ||||||
|---|---|---|---|---|---|---|
| 1841 | 12 | 3 | 2 | 0 | 3 | -10 |
| 1851 | 15 | 5 | 2 | 3 | -7 | |
| 1861 | 20 | 7 | 5 | -4 | ||
| 1871 | 27 | 12 | 1 | |||
| 1881 | 39 | 13 | ||||
| 1891 | 52 |
Population in 1845 (Newton forward, , ):
Population in 1885 (Newton backward, , ) with :
Change in population
i.e. an increase of about 32,200 people.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
A rod is rotating in a plane. The following table gives angle () radian through which rod is turned at a various time interval (t) sec. Calculate angular velocity and angular acceleration of a rod when sec. (Table in the paper: t = 0, 0.2, 0.4, 0.6, 0.8; = 0, 0.12, 0.49, 1.12, 2.02.)
Answer
Angular velocity and angular acceleration . The point is the second tabulated value, so use Newton's forward formula with , , .
Difference table
| 0 | 0 | 0.12 | 0.25 | 0.01 | 0 |
| 0.2 | 0.12 | 0.37 | 0.26 | 0.01 | |
| 0.4 | 0.49 | 0.63 | 0.27 | ||
| 0.6 | 1.12 | 0.90 | |||
| 0.8 | 2.02 |
Angular velocity
At :
Angular acceleration
So at s: rad/s and rad/s.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Using Heun's method, solve , and to find and with .
Answer
Let . Then , with , . Heun's method for the system:
Step 1 (): Predictor: , . Slope at the new point: .
Step 2 (): Initial slopes: , . Predictor: , . Slope at the new point: .
Hence and .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Using shooting method solve the following equation , given, , in an interval of 1 and 2.
Answer
Idea. Replace the boundary value problem by an initial value problem with an assumed slope , integrate to , and adjust until .
Let , so with , . Integrating,
so . (A Runge-Kutta or Euler integration gives the same result since is linear in .)
First trial: (target 9, too low). Second trial: (still low).
Since varies linearly with , interpolate:
Third trial: , which matches the boundary condition.
With : and
Check: . For example .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
Solve the Poisson equation over the square domain , with on the boundary and mesh length .
Answer
For with , the five-point formula is
Interior nodes: ; boundary values are 0. Let , (symmetry), :
From the first and third: , . Then , so .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 5 marks
Write short notes on: Algorithm of Bisection Method
Answer
Bisection method finds a root of in where is continuous and , by repeatedly halving the interval.
Algorithm
- Choose with and a tolerance .
- Compute the midpoint .
- If or , stop: is the root.
- If , set ; otherwise set .
- Go to step 2.
Properties
- Always converges (if the sign condition holds), but only linearly: the error halves at each step.
- The number of iterations needed for accuracy is .
- Simple and robust, but slower than Newton-Raphson or secant.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 5 marks
Write short notes on: Parabolic equation
Answer
A second-order PDE is parabolic when . The standard example is the one-dimensional heat (diffusion) equation
It needs an initial condition and boundary conditions at the ends of the rod.
Explicit finite-difference solution. With , and :
This is stable only if ( gives Bender-Schmidt: ). The Crank-Nicolson implicit method is unconditionally stable and requires solving a tridiagonal system at each time level.
Parabolic equations model heat conduction and diffusion.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 5 marks
Write short notes on: RK-4 method
Answer
The fourth-order Runge-Kutta method solves , with step :
Features
- It agrees with the Taylor series up to , so the local error is and the global error .
- It is a single-step method needing no derivatives of and no starting values, but four evaluations of per step.
- It extends to systems and higher-order ODEs by writing them as first-order systems.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 7 marks
Explain the types of errors. An approximate value of is given by and its true value is . Find the absolute and relative errors.
Answer
Types of errors
- Inherent error: error in the input data (from measurement or earlier approximation).
- Round-off error: from keeping a finite number of digits, e.g. .
- Truncation error: from replacing an infinite process by a finite one, e.g. cutting a Taylor series.
- Absolute error: .
- Relative error: , and the percentage error is .
Numerical part. True value , approximate value .
The percentage error is about .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 8 marks
Write a difference between secant method and false position method. Using secant method find a root of the equation correct to three decimal places.
Answer
Differences
| Secant method | False position method |
|---|---|
| Needs two starting values; they need not bracket the root | Needs two values with |
| Always uses the two latest points, | Keeps the end that retains opposite signs |
| May diverge | Always converges (bracketing is kept) |
| Faster, order | Slower, linear order |
Both use .
Root of . , ; take .
| 1 | 0 | 1 | -1.0000 | 1.1232 | 0.47099 |
| 2 | 1 | 0.47099 | 1.1232 | 0.26516 | 0.30751 |
| 3 | 0.47099 | 0.30751 | 0.26516 | -0.13482 | 0.36261 |
| 4 | 0.30751 | 0.36261 | -0.13482 | 0.00548 | 0.36046 |
| 5 | 0.36261 | 0.36046 | 0.00548 | 0.00010 | 0.36042 |
| 6 | 0.36046 | 0.36042 | 0.00010 | 0.00000 | 0.36042 |
The root is .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 7 marks
The population of a town in the last six censuses was as given below. Estimate the population in the year 1946.
Year 1911 1921 1931 1941 1951 1961 Population (000) 12 15 20 27 39 52
Answer
1946 lies near the end of the table, so use Newton's backward formula with , :
Backward difference table (population in thousands)
| Year | ||||||
|---|---|---|---|---|---|---|
| 1911 | 12 | |||||
| 1921 | 15 | 3 | ||||
| 1931 | 20 | 5 | 2 | |||
| 1941 | 27 | 7 | 2 | 0 | ||
| 1951 | 39 | 12 | 5 | 3 | 3 | |
| 1961 | 52 | 13 | 1 | -4 | -7 | -10 |
The population in 1946 is about thousand ().
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 8 marks
Solve the following equations by Gauss-Seidel Method:
Answer
The system is diagonally dominant. Solve for the diagonal unknowns and always use the latest values:
Start with .
| Iter | |||
|---|---|---|---|
| 1 | 3.14815 | 3.54074 | 1.91317 |
| 2 | 2.43217 | 3.57204 | 1.92585 |
| 3 | 2.42569 | 3.57294 | 1.92595 |
| 4 | 2.42549 | 3.57301 | 1.92595 |
| 5 | 2.42548 | 3.57302 | 1.92595 |
Iteration 1 example: ; ; .
Solution: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 7 marks
Use power method to find the largest Eigen value and Eigen vector of the matrix given in the paper.
Answer
Taking with initial vector . At each step compute , take the largest component as the eigenvalue estimate , and divide by it.
| 0 | 6 | ||
| 1 | 7.3333 | ||
| 2 | 7.8182 | ||
| 3 | 7.9535 | ||
| 4 | 7.9883 |
The estimates converge to
Check: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 8 marks
Using Gauss Jordan method, find the inverse of the matrix given in the paper.
Answer
Taking . Form and reduce to .
:
, :
, :
Check: row 1 of times column 1 of gives , and times column 2 gives .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 7 marks
Consider the following table showing the distance (in meters) traveled by an object at different time intervals (in seconds) (table in the paper). Using the trapezoidal and Simpson integration rule, calculate the average velocity of the bicycle over the time interval from to seconds.
Answer
Taking the table as velocity (m/s) measured every s:
| 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| 0 | 3 | 8 | 15 | 24 |
The distance covered is and the average velocity is .
Trapezoidal rule
Simpson's 1/3 rule
Simpson's value is the more accurate (the data follow , whose exact integral is ).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 7 marks
Using Euler's method, solve , with in the interval . Take .
Answer
, , . Euler: .
| 0 | 0.0 | 1.00000 | 1.00000 | 1.20000 |
| 1 | 0.2 | 1.20000 | 1.39867 | 1.47973 |
| 2 | 0.4 | 1.47973 | 1.86915 | 1.85356 |
| 3 | 0.6 | 1.85356 | 2.41820 | 2.33720 |
| 4 | 0.8 | 2.33720 | 3.05455 | 2.94811 |
So , , , and .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 8 marks
Using RK-4 method, solve the equation for . Given the second order differential equation in the paper with , , .
Answer
Taking the equation as , , , . Let , so , .
For each step, with slopes (not multiplied by ):
, at , and so on, then
Step 1 (, , ): , , ,
Step 2 (, , ): , , ,
Hence (and ). The exact solution gives .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 7 marks
What is boundary value problem? Derive Laplace five point formula.
Answer
Boundary value problem (BVP). A differential equation together with conditions given at more than one point (the boundary) of the domain. For example, with , or a PDE such as Laplace's equation in a region with prescribed on the boundary. (In an initial value problem all conditions are given at one point.)
Laplace five-point formula. Cover the region with a square mesh of side , with nodes and . Taylor expansion gives
Adding: , so
Similarly
Substituting into :
So the value at an interior node is the average of its four neighbours. Writing this for every interior node gives a linear system, solved by Gauss-Seidel or Liebmann's iteration.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 8 marks
Use the Bisection Method to compute a root of the equation: correct to 4 decimal places.
Answer
Let .
Step 1: Locate the root.
and , so a root lies in .
Step 2: Bisection. Use and keep the half where the sign changes.
| n | a | b | c | f(c) |
|---|---|---|---|---|
| 1 | 0 | 1 | 0.5 | |
| 2 | 0.5 | 1 | 0.75 | |
| 3 | 0.5 | 0.75 | 0.625 | |
| 4 | 0.5 | 0.625 | 0.5625 | |
| 5 | 0.5 | 0.5625 | 0.53125 | |
| 6 | 0.5 | 0.53125 | 0.515625 | |
| 7 | 0.515625 | 0.53125 | 0.523438 | |
| 8 | 0.515625 | 0.523438 | 0.519531 | |
| 9 | 0.515625 | 0.519531 | 0.517578 | |
| 10 | 0.517578 | 0.519531 | 0.518555 | |
| 11 | 0.517578 | 0.518555 | 0.518066 | |
| 12 | 0.517578 | 0.518066 | 0.517822 | |
| 13 | 0.517578 | 0.517822 | 0.517700 | |
| 14 | 0.517700 | 0.517822 | 0.517761 |
After 14 iterations the root lies in , and both ends round to .
Root (correct to 4 decimal places).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 5 marks
Write short notes on: Ill conditioned system with an example
Answer
Ill-conditioned system. A system of linear equations is ill-conditioned if a very small change (or rounding error) in the coefficients or the right-hand side produces a large change in the solution. The matrix is nearly singular, so its determinant is close to zero and its condition number is very large. If the solution is stable under small changes, the system is well-conditioned.
Example.
Subtracting gives , so and .
Now change the right-hand side slightly to :
Then , so and .
A change of only in one constant changed the solution from to . The two lines are almost parallel (), so the system is ill-conditioned.
Consequences. Numerical methods such as Gauss elimination give unreliable answers because round-off errors are magnified. Remedies include pivoting, higher-precision arithmetic, and iterative refinement.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 5 marks
Write short notes on: SOR method
Answer
Successive Over-Relaxation (SOR) is an iterative method for solving . It improves the Gauss-Seidel method by adding a relaxation factor to speed up convergence.
For the system , the SOR update is
Equivalently, , where is the Gauss-Seidel value.
Role of (relaxation factor):
- gives exactly the Gauss-Seidel method.
- is under-relaxation. It is used to make a non-convergent or oscillating iteration converge.
- is over-relaxation. It is used to accelerate a slowly converging iteration.
- The method converges only for (for symmetric positive definite , it converges for every such ).
Features: It needs few extra operations compared with Gauss-Seidel. It is well suited to large sparse systems, for example those arising from finite-difference solutions of Laplace and Poisson equations. A good choice of can reduce the number of iterations a lot.
Steps: (1) Make diagonally dominant if possible. (2) Choose and an initial guess . (3) Apply the update for using the newest values. (4) Stop when is less than the tolerance.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 5 marks
Write short notes on: Elliptical equation
Answer
Elliptic equation. A second-order partial differential equation
is elliptic if . Elliptic equations describe steady-state (time-independent) problems and are solved over a region with boundary conditions given on the whole boundary.
Standard examples:
- Laplace equation: (here ).
- Poisson equation: .
Numerical (finite-difference) solution. Divide the region into a square mesh of step . Replacing the derivatives by central differences,
the Laplace equation becomes the five-point formula
and the Poisson equation becomes .
Each interior point is the average of its four neighbours. Writing this for all interior points gives a linear system, solved by the Jacobi, Gauss-Seidel (Liebmann) or SOR iteration. Boundary values are fixed by the given boundary conditions (Dirichlet problem).
Applications: steady heat conduction, electrostatic potential, and fluid flow.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from PU BCA 2025 Spring Numerical Methods (Pokhara University BCA, Spring 2025), PU BCA 2024 Spring Numerical Methods (Pokhara University BCA, Spring 2024), PU BCA 2023 Spring Numerical Methods (Pokhara University BCA, Spring 2023), PU BCA 2025 Spring Mathematical Foundation of Computer Science (Pokhara University BCA, Spring 2025), PU BCA 2024 Fall Mathematical Foundation of Computer Science (Pokhara University BCA, Fall 2024), PU BCA 2024 Spring Mathematical Foundation of Computer Science (Pokhara University BCA, Spring 2024), PU BCA 2023 Spring Mathematical Foundation of Computer Science (Pokhara University BCA, Spring 2023) and PU BCA 2025 Spring Data Communication and Computer Network (Pokhara University BCA, Spring 2025). Answers are written for this site; check them against your class notes.