0% found this document useful (0 votes)
59 views2 pages

Final Paper

This document is the final exam for a Numerical Methods course taken at CEME, National University of Sciences & Technology. It contains 7 questions assessing various numerical analysis techniques including: 1) Using Newton Raphson's method to find the root of a polynomial equation. 2) Using a cubic function to extrapolate acceleration values and find the time of constant velocity. 3) Applying trapezoidal rule to approximate a definite integral and calculating the error compared to the exact value. 4) Solving a system of differential equations using LU decomposition. 5) Comparing solutions from Gauss-Seidel method to LU decomposition for question 4. 6) Using Euler's method to solve a

Uploaded by

muddassir razzaq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views2 pages

Final Paper

This document is the final exam for a Numerical Methods course taken at CEME, National University of Sciences & Technology. It contains 7 questions assessing various numerical analysis techniques including: 1) Using Newton Raphson's method to find the root of a polynomial equation. 2) Using a cubic function to extrapolate acceleration values and find the time of constant velocity. 3) Applying trapezoidal rule to approximate a definite integral and calculating the error compared to the exact value. 4) Solving a system of differential equations using LU decomposition. 5) Comparing solutions from Gauss-Seidel method to LU decomposition for question 4. 6) Using Euler's method to solve a

Uploaded by

muddassir razzaq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CEME, National University of Sciences & Technology

Final Spring Semester 2017


Dept. of Basic Sciences & Humanities
Subject Code: MATH-352
Subject: Numerical Methods
Duration: 3 hour Degree: 36 Mts (A,B)
Max Marks: 100 Instructor: Dr. Syed Tayyab Hussain
Date: 17-05-2017 (12:30-15:30)

Note: Attempt all the parts at one place otherwise, marks will be deducted. CLOs for each question are
Q1(clo1;plo2),Q2(clo2;plo2),Q3(clo3;plo1), Q4(clo4;plo1), Q5(clo4;plo1),Q6(clo5;plo2) and Q7(clo5;plo2)

Q1: Show that the equation 𝑥 4 − 4𝑥 + 1 = 0, has exactly two real roots between [0,2]. Use
]15[
the Newton Raphson method to find the larger of these roots correct to three decimal
points.
Q2: The acceleration function of a moving drone a(t) is known to be a cubic function. Some
values of a(t) are given in the table below. Find the value of k.
t (sec) 1 2 3 4 5
a(t) m /𝑠𝑒𝑐 2 -15 -14 k 54 145 ]10[
Extend the table to find the value of a(0) and find the time when drone will achieve the
constant velocity.
Q3: The vertical distance covered by rocket from 𝑡 = 8 𝑡𝑜 𝑡 = 30 seconds is given by
30
140000
𝑥 = ∫ (2000 ∗ ln [ ] − 9.8 ∗ 𝑡)𝑑𝑡
8 140000 − 2100 ∗ 𝑡
Use the trapezoidal rule to find the distance covered from 𝑡 = 8 𝑡𝑜 𝑡 = 30 𝑠𝑒𝑐𝑜𝑛𝑑𝑠 by
using 𝑛 = 4. The exact value of this integral is 11061 m. Show that the accuracy of
]15[
trapezoidal rule increases as n is increased from 2 to 4. Find the absolute and
percentage relative error between the approximated values for different n and exact
value.
Q4:

]15[

Using the Kirchhoff’s voltage law for each loop. The following system of differential
equations is obtained
10𝐼1 + 20(𝐼1 + 𝐼2 ) + 30𝐼1 = 1000 − 1000,
15𝐼2 + 20(𝐼2 + 𝐼1 ) + 40𝐼2 + 5(𝐼2 + 𝐼3 ) = 2000 − 1000
25𝐼3 + 35𝐼3 + 5(𝐼3 + 𝐼2 ) = 2000 − 2000
Use LU decomposition to find the current in each loop.

P.T.O
Q5: Find the current in each loop of figure given in Question 4 by using the Gauss Siedel
Method and Compare obtained results with the ones obtained in Question. 4 in terms of ]10[
percentage error. Keep the accuracy of solution up to the three decimal point.
Q6: The open loop response, that is, the speed 𝜔 of the motor to a voltage input of 20V,
assuming a system without damping is
𝑑𝜔
20 = 0.02 + (0.06)𝜔 ]15[
𝑑𝑡
If the initial speed is zero; use the Euler method and a step size of 0.4 to find the speed
at 0.4 s.
Q7: A spring with a mass of 2 kg has natural length 0.5 m. A force of 25.6 N is required to
maintain it stretched to a length of 0.7 m. If the spring is stretched to a length of 0.7 m
]20[
and then released with initial velocity 0, find the position of the mass at any time. The
equation of motion for mass spring system is
𝑑2 𝑥
𝑚 + 𝑐𝑥 = 0; 0 ≤ 𝑡 ≤ 1
𝑑𝑡 2
Where k is given by Hooke’s law 𝐹 = 𝑐𝑥. Use Runge Kutta 4th Order to find the
displacement and velocity at 𝑡 = 0.1 𝑠𝑒𝑐𝑜𝑛𝑑𝑠.
The RK 4th order scheme is given by
𝑤0 = 𝛼
𝑘1 = ℎ𝑓(𝑡𝑖 , 𝑤𝑖 ),
ℎ 𝑘1
𝑘2 = ℎ𝑓 (𝑡𝑖 + , 𝑤𝑖 + )
2 2
ℎ 𝑘2
𝑘3 = ℎ𝑓 (𝑡𝑖 + , 𝑤𝑖 + )
2 2
𝑘4 = ℎ𝑓(𝑡𝑖 + ℎ, 𝑤𝑖 + 𝑘3 )
1
𝑤𝑖+1 = 𝑤𝑖 + (𝑘1 + 2𝑘2 + 2𝑘3 + 𝑘4 )
6

****Good luck****

You might also like