NT For Inquiries
NT For Inquiries
a) Use bisection method and Newton-Raphson method to solve the equation: 𝑥 =50 𝑙𝑛𝑥.
Q1
t(s) 0 3 6 9 12 20
v(m/s) 0 0.16 0.55 6.08 20.17 81.25
Newton Interpolation
( n+1 )
f (ξ)
Interpolation Error=f ( x ) −P n ( x )=( x−x 0 ) …(x−x n)
( n+1 ) !
Linear Least Square
y=a0 +a 1 x
xi [∑
n ∑ xi
∑ x 2i ][ ] [
a0
a1
= ∑ yi
∑ xi yi ]
Composite Trapezium & Simpson’s Rules for Integration
2 4
Composite Trapezium Error=C h , Simpson ’ s Rules Error=C h .
Simplest Formulae for Romberg Integration (h of LA is double of h of MA)
LA=Less Accurate, M A=More Accurate
4 (MA)−LA
From order of error h2 to order of error h 4 I=
3
16( MA )−LA
From order of error h 4 to order of error h6 I=
15
'
Initial Value Problem y =f x , y , y ( x 0 )= y 0
( )
a) Use bisection method and Newton-Raphson method to solve the equation: 𝑥 =50 𝑙𝑛𝑥.
Q1
f ( x )=x −lnx ¿
Bisection
t(s) 0 3 6 9 12 20
v(m/s) 0 0.16 0.55 6.08 20.17 81.25
5
0.37293t
v=0.093104 e
At t=8 , v =1.839332089
At t=15 , v=25.02594548
Q3
x=0.8 x
e cosx
I= ∫ 3
dx =0.9533550
x=0 1+ x
Error= 0.9535106-0.9533550=.00001556
Q4
a) Consider the following system of linear equations:
Direct - Method
[ ] [ ]
−0.383 −0.00001875
0.0275 −0.00005625
- 0.140 = .0000265
b) Solve the following differential equation by using Runge- Kutta method over the interval
[ 0 , 0.5 ] with a step size h=0.1 :
dy
=−x y , and y ( 0 )=¿ 1.
dx
2
−x
Compare the solution with the analytical solution: y (x )=e 2 [12 marks]
Q5
Use two numerical techniques to solve the equation:
dy
=1+ xsiny , 0 ≤ x ≤ 0.3 , y ( 0 )=0.
dx
Sketch the solution. {Choose step sizeh=0.1 ¿