0% found this document useful (0 votes)
70 views20 pages

Application of Numerical Method

The document discusses applying numerical methods to solve problems involving differentiation, integration, interpolation, and curve fitting. In the first problem, numerical differentiation is used to calculate the velocity and acceleration of a car at time 0.5 seconds by constructing a difference table from the given position-time data and applying the forward difference formula. The second problem applies trapezoidal and Simpson's 1/3rd rule to numerically integrate velocity-time data and estimate the total distance traveled by a pin between 0 and 4 seconds. The third problem uses Newton's forward difference formula to interpolate the kinematic viscosity of water from a temperature-viscosity table and predict the value at an intermediate temperature. The final problem asks

Uploaded by

shazaib ali
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
0% found this document useful (0 votes)
70 views20 pages

Application of Numerical Method

The document discusses applying numerical methods to solve problems involving differentiation, integration, interpolation, and curve fitting. In the first problem, numerical differentiation is used to calculate the velocity and acceleration of a car at time 0.5 seconds by constructing a difference table from the given position-time data and applying the forward difference formula. The second problem applies trapezoidal and Simpson's 1/3rd rule to numerically integrate velocity-time data and estimate the total distance traveled by a pin between 0 and 4 seconds. The third problem uses Newton's forward difference formula to interpolate the kinematic viscosity of water from a temperature-viscosity table and predict the value at an intermediate temperature. The final problem asks

Uploaded by

shazaib ali
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 20

(Application of Numerical Differentiation)

Q: The following table gives the distance


traveled d from rest by a car at various
times t.
t 0 .5 1.0 1.5 2.0

d 0.00 0.07 0.53 1.60 3.61


What was the velocityand acceleration of the car at
0.5.
solution: Given that
t 0 0.5 1.0 1.5 2.0

d 0.00 0.07 0.53 1.60 3.61


Let x=t ,d= f(x)
so the table takes the form
x 0.0 0.5 1.0 1.5 2.0

f(x) 0.00 0.07 0.53 1.60 3.61


We have to calculate

v(0.5) , a(0.5)

for this we have to find

f’(0.5) , f’’(0.5)

first we construct the difference table


x f(x) f(x) f(x) f(x) f(x)

0 0.00 0.07 0.39 0.22 0.11

0.5 0.07 0.46 0.61 0.33

1.0 0.53 1.07 0.94

1.5 1.60 2.01

2.0 3.61
  Now first we have to calculate
p=== 0
p=0
now apply newton forward difference formula of
numerical differentiation form
f’()=1/h[ f() +f()+f() +…. (1)
f’’()= 1/ [f()+(p-1) f()+……..(2)
  Now from the table
f()=0.46 , f()=0.61 , f()= 0.33 , p=0 , =0.5
h=0.5 ,
by putting the value in eq(1) and
eq(2) we get
f’(0.5)=1/0.5[ ++0.53
f’’(0.5)= 1/0.25[(0.61)+(0-1) (0.33)]= 1.12
Now we have
v(0.5)=f’(0.5)=0.53
a(0.5)=f’’(0.5)=1.12
Required solution.
(Application of Numerical Integration)
Q: A pin moves along a straight guide so that its
velocity v(cm/s) when it is a distance x(cm) from
the beginning of the guide at time t(s) is given in the
table
below:
t(s) 0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0

V(cm/s) 0 4.00 7.94 11.68 14.97 17.39 18.25 16.08 0.00


 
Apply trapezoidal and simpson’s rule 1/3rd
to find the approximate total distance
travelled by the pin between t=0 to t=4
solution: Given that
t=a=0 , t= b=4,
since the points are 9 so n=8
to find h
h= = = 4/8=1/2=0.5
 
Now apply the trapezoidal and simpson’s 1/3r rule we
have
for this consider the formula,s

=[f() + 2{ f() +f() +….f()} +f()]…(1)


=[f()+ 2{ f() +f() +….f()}+ 4{ f() +f() +….f()}+f()]
………(2)
( Application of numerical methods)
Q: Kinematic viscosity of water ,v is related to
temperature in the following manner:

T(F) 40 50 60 70 80

V 1.66 1.41 1.22 1.06 0.93


Use suitable interpolation formula
to predict v at T=43F
solution: let T=x and v=f(x) then table take the
form
x 40 50 60 70 80

F(x) 1.66 1.41 1.22 1.06 0.93


 
Since the data points is 5 so Newton forward
difference formula up to forth order
f() = f() +p f() + f()+ f() + f()+………(A)
Now our required result will be prove if er have to
find
  p , f() , f(), f(), f(), f() for this first we
construct difference table for
x f(x) f(x) f(x) f(x) f(x)

40 1.66 -0.25 0.06 -0.03 0.03

50 1.41 -o.19 0.03 0

60 1.22 -0.16 0.03

70 1.06 -0.13

80 0.93
 Now to find p
we know
p= ……….(B)
but =43 , =40 ,h =10 put in eq(B)
p= ==0.3
also from the table
f()= 1.66, f()=-0.25, f()=0.06, f()=-0.03,
f()=0.03
  put the above value in eq(A) we get
By
f(43) = 1.66+(0.3)+ ++ +………
by simplification
f(43)= ( 1.57 )
v= ( 1.57 )ans.
Q: you measure the voltage drop v,
across for a number of different values
of current i the result are :

i 0.25 0.75 1.25 1.75 2.25

v -0.023 -0.33 0.70 1.88 6.00


Use the interpolation formula to estimate
the voltage drop for i = 2.20
solution :
let i=x , v= f(x)
then the table take the form
x 0.25 0.75 1.25 1.75 2.25

F(x) -0.23 -0.33 0.70 1.88 6.00


We have to calculate
f(2.20)
(solve your self)

You might also like