You are on page 1of 2

JISCE / UG / ME / R21 / SEM-4 / ES491 / 2022-23

ROLL NO.: _______________________________________

NUMERICAL METHODS LAB


ES491
SET-1
Time: 3 Hours Total Marks: 60
Distribution of Marks:
(i) Coding and execution: 30
(ii) Presentation and interpretation of results: 10
(iii) Viva-voce: 20
Answer one of the following questions

MARKS CO NO.

1. (a) Write a program in C to determine the real root of the equation 30 1


𝑥 3 − 3𝑥 − 5 = 0 that lies between 1 and 2 correct upto 4 places of
decimals using Bisection method.
(b) Analyze and interpret the results in a tabular form using commands. 10 2
2. (a) Write a C program to determine a real root of the equation 30 1
−12 − 21x + 18x 2 − 2.75𝑥3 = 0 using method of False position
with initial guesses of 𝑥𝑙 = −1 and 𝑥𝑢 = 0 and a stopping criterion
of 1%.
(b) Analyze and interpret the result in a tabular form using commands. 10 2
3. (a) Write a C program to obtain the approximate value of (18)1/3 using 30 1
Newton-Raphson method with the initial approximation 𝑥0 = 2,
correct to six places of decimals.
(b) Analyze and interpret the results in a tabular form using command. 10 2
4. (a) Write a C program to solve the following system of equations by 30 1
Gauss elimination
𝑥1 − 2𝑥2 + 9𝑥3 = 8
3𝑥1 + 𝑥2 − 𝑥3 = 3
2𝑥1 − 8𝑥2 + 𝑥3 = −5
(b) Analyze and interpret the results of numerical approaches using 10 2
command.
5. (a) 1 30 1
Write a C program to evaluate the integral ∫0 (1 + 𝑒 𝑥 )𝑑𝑥 using
Simpson’s 1/3 rule correct to 4 decimal places by taking step length
ℎ = 0.1
(b) (i) Analyze and interpret the results of numerical approaches using 5 2
command.
(ii) Compute the percent relative error in evaluating the above integral. 5 2
6. (a) 3 1 30 1
Write a C program to evaluate the integral ∫0 1+𝑥 𝑑𝑥 using
Weddle’s rule correct to 4 decimal places by ta taking 6 sub-
interval.
(b) (i) Analyze and interpret the results of numerical approaches using 5 2
command.
(ii) Compute the percent relative error in evaluating the above integral. 5 2

Page 1 of 2
JISCE / UG / ME / R21 / SEM-4 / ES491 / 2022-23

ROLL NO.: _______________________________________

7. (a) Write a C program to evaluate the following 30 1


1
𝑥2
∫ 3
𝑑𝑥
0 1+𝑥
using composite Trapezoidal rule correct to 4 decimal places
taking step length ℎ = 0.25.
1
(b) (i) Hence, determine the approximate value of log 23 . 5 2
(ii) Analyze and interpret the result using commands. 5 2
8. 𝑑𝑦 1
Consider the initial value problem (IVP) 𝑑𝑥 = 𝑥+𝑦, 𝑦(0) = 1.
(a) Write a C program to solve the above IVP over the interval for 30 1
𝑥 = 0 to 𝑥 = 1 using Runge-Kutta of order 4, correct to four
decimal places with step length ℎ = 0.2.
(b) Analyze and interpret the results in a tabular form. 10 2
9. 𝑑𝑦
Consider the following initial value problem (IVP) 𝑑𝑡 = 𝑡 2 + 𝑦,
𝑦(0) = 1.
(a) Write a C program to solve the above IVP over the interval from 30 1
𝑡 = 0 to 𝑡 = 1 using Euler’s method, using a step size of 0.1
correct to four decimal places.
(b) Analyze and interpret the results in a tabular form. 10 2
10. Consider the following initial value problem (IVP) over the interval
from 𝑡 = 0 to 𝑡 = 1
𝑑𝑦
= (1 + 4𝑡)√𝑦, y(0)=1.
𝑑𝑡
(a) Write a C program to solve the above IVP over the interval for 30 1
𝑡 = 0 to 𝑡 = 1 using modified Euler’s method of order 4, using a
step size of 0.25
(b) Analyze and interpret the results in a tabular form. 10 2
11. Given the data
𝑥 0.62 0.68 0.70 0.73 0.75
𝑦 0.6605 0.7336 0.7586 0.7966 0.8223
(a) Write a C program to compute the value of 𝑦 for 𝑥 = 0.72 from the 30 1
following table using Lagrange’s interpolation correct to four
decimal places.
(b) (i) Analyze and interpret the result using command. 8 2
(ii) Is there any other method that you can apply to get the result? 2 2
12. The following data define the sea-level concentration of dissolved
oxygen for fresh water as a function of temperature:
𝑇𝑜𝐶 0 8 16 24 32 40
O (mg/l) 14.621 11.843 9.870 8.418 7.305 6.413
(a) Write a C program to estimate the sea-level concentration of 30 1
dissolved oxygen at 4𝑜 C from the above table using Newton’s
forward interpolation correct to four decimal places.
(b) Analyze and interpret the result using commands. 10 2

Page 2 of 2

You might also like