SlideShare a Scribd company logo
S.N.PATEL INSTITUTE OF TECHNOLOGY
AND RESEARCH CENTRE
Computational Method for Mechanical Engineering
Prepared by :
Padhiyar Brijesh R.
(170490728009)
Interpolation
Interpolation means to find values of
function f(x) for an x between
different x-values x0, x1…, xn at
which the values of f(x) are given.
NEWTON’S FORWARD
&
NEWTON’S BACKWARD
INTERPOLATION
NEWTON’S FORWARD INTERPOLATION
• Formula of Newton’s Forward Interpolation
𝑦 𝑛 𝑥 = 𝑦0 + 𝑝𝚫𝑦0 +
𝑝(𝑝 − 1)
𝚫2 𝑦0 +
𝑝(𝑝 − 1)(𝑝 − 2)
2! 3!
𝚫3 𝑦0 +⋯
+
𝑝(𝑝 − 1) (𝑝 − 2)…(𝑝 − 𝑛 + 1)
𝑛!
𝚫 𝑛 𝑦0
Here :- 𝑝 = 𝑥−𝑥0
ℎ
EXAMPLE
• Find The value Of 𝒕𝒂𝒏 0.12
𝑥 0.10 0.15 0.20 0.25 0.30
𝑦 = 𝑡𝑎𝑛 𝑥 0.1003 0.1511 0.2027 0.2553 0.3093
Solution
X Y Δ Δ2 Δ3 Δ4
0.10 0.1003
0.0508
0.15 0.1511 0.0008
0.0516 0.0002
0.20 0.2027 0.0010 0.0002
0.0526 0.0004
0.25 0.2553 0.0014
0.0540
0.30 0.3093
Applying Newton’s Forward Difference Interpolation Formula.
𝑦 𝑛 (x) = 𝑦0 + 𝑝𝚫𝑦0 + 𝚫2 𝑦0 +
𝑝(𝑝 − 1) 𝑝(𝑝 − 1) (𝑝 − 2)
2! 3!
𝚫3 𝑦0 +
𝑝(𝑝 − 1)(𝑝 − 2)(𝑝 − 3)
4!
𝚫4 𝑦0
Here 𝑦 𝑛 (x) = tan(0.12)
∴ 𝑝 = 𝑥−𝑥0
= 0.12−0.10
= 0.02
= 0.4
ℎ 0.05 0.05
∴ 𝑦 𝑛 (𝑥)= 0.1003 + 0.4( 0.0508)
(0.4−2)
+ 0.4 0.4−1
0.0008 + 0.4(0.4−1)
2 6 24
0.0002 + 0.4( 0.4−1)(0.4−2)(0.4−3)
0.0002
𝑦 𝑛 (x)= 0.1205
NEWTON’S BACKWARD INTERPOLATION
• Formula of Newton’s Backward Interpolation
𝑦 𝑛 (x) = 𝑦 𝑛 𝑝𝛁𝑦 𝑛 +
𝑝(𝑝 + 1)
2!
𝛁2 𝑦 𝑛 + ⋯+
𝑝(𝑝 − 1) … (𝑝 + 𝑛 − 1)
𝑛!
𝛁 𝑛 𝑦 𝑛
Here :- 𝑝 =
+
X - Xn
h
EXAMPLE
• Consider Following Tabular Values Determine y (300)
𝑥 50 100 150 200 250
𝑦 618 724 805 906 1032
Solution
X Y 𝛁 𝛁2 𝛁3 𝛁4
50 618
106
100 724 -25
81 45
150 805 20 -40
101 5
200 906 5
126
250 1032
Applying Newton’s Backward Difference interpolation Formula.
𝑦 𝑛 (𝑥 )= 𝑦0 + 𝑝𝛁𝑦 𝑛 +
𝑝(𝑝 − 1)
2!
𝛁2 𝑦 𝑛 +
𝑝(𝑝 − 1)(𝑝 − 2)
3!
𝛁3 𝑦 𝑛 +
𝑝(𝑝 − 1)(𝑝 − 2)(𝑝 − 3)
4!
𝛁4 𝑦 𝑛
Here, 𝑦 𝑛 (𝑥 ) = 𝑦 𝑛 (300)
∴ 𝑝 = 𝑥−𝑥 𝑛
= 300−250
= 1
ℎ 50
∴ 𝑦n(x) = 1032 + 126+
1(1+1)
2!
25 +
1( 1+1)(1+2)
3!
5 +
1( 1+1)(1+2)(1+3)
4!
(−40)
= 1032 + 126 + 25 + 5 −4
𝑦 𝑛(300) = 1148
NEWTON’S DIVIDED DIFFERENCE
INTERPOLATION
NEWTON’S DEVIDED
DIFFERENCE FORMULA
        0 0 0 1 0 1 0 1 2.....f x y x x x x x x x x x x x     
Example :
Find the polynomial of the lowest possible degree which assumes the values 3, 12,
15,-21 when x has the values 3, 2, 1,-1, respectively. Hence find f(0).
Solution
X Y Δ Δ2 Δ3
-1 -21
18
1 15 -7
-3 1
2 12 -3
-9
3 3
Using Newton’s divided difference formula, we get
f(x)=−21+(x − (−1)) * 18 +(x +1) (x − 1) * (−7) + (x + 1) (x − 1) (x − 2) * 1
= −21 + 18 (x + 1) + (x2 −1) (−7) + (x3 - 2x2 – x +2)
f(x) =x3 - 9x2 + 17x + 6
Hence f(0) = 6.
LANGRANGE’S INTERPOLATION
1 2
0
0 1 0 2 0
0 2
1
1 0 1 2 1
0 1
2
2 0 2 1 2
( )( )........( )
( )
( )( )........( )
( )( )........( )
( )( )........( )
( )( )........( )
+ .....
( )( )........( )
n
n
n
n
n
n
x x x x x x
F x y
x x x x x x
x x x x x x
y
x x x x x x
x x x x x x
y
x x x x x x
  

  
  

  
  
  
...
EXAMPLE
• Compute f(0.3) for the data
𝑥 0 1 3 4 7
f 1 3 49 129 813
1 2
0
0 1 0 2 0
0 2
1
1 0 1 2 1
0 1
2
2 0 2 1 2
( )( )........( )
( )
( )( )........( )
( )( )........( )
( )( )........( )
( )( )........( )
+ .....
( )( )........( )
n
n
n
n
n
n
x x x x x x
F x y
x x x x x x
x x x x x x
y
x x x x x x
x x x x x x
y
x x x x x x
  

  
  

  
  
  
...
(0.3−1)(0.3−3)(0.3−4)(0.3−7) (0.3−0)(0.3−3)(0.3−4)(0.3−7) (0.3−0)(0.3−1)(0.3−4)(0.3−7)
(0.3−0)(0.3−1)(0.3−3)(0.3−7) (0.3−0)(0.3−1)(0.3−3)(0.3−4)
(−1)(−3)(−4)(−7) (1)(-2)(−3)(−6) (3)(2)(−1)(−4)
(4)(3)(1)(−3) (4)(3)(6)(7)
*1+= *49+*3+
*813*129+
= 1.831
Thank you…

More Related Content

What's hot

Fixed point iteration
Fixed point iterationFixed point iteration
Fixed point iteration
Isaac Yowetu
 
Runge kutta method -by Prof.Prashant Goad(R.C.Patel Institute of Technology,...
Runge  kutta method -by Prof.Prashant Goad(R.C.Patel Institute of Technology,...Runge  kutta method -by Prof.Prashant Goad(R.C.Patel Institute of Technology,...
Runge kutta method -by Prof.Prashant Goad(R.C.Patel Institute of Technology,...
Prashant Goad
 
Bisection method
Bisection methodBisection method
Bisection method
Isaac Yowetu
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
Jayesh Ranjan
 
Euler and runge kutta method
Euler and runge kutta methodEuler and runge kutta method
Euler and runge kutta method
ch macharaverriyya naidu
 
Interpolation
InterpolationInterpolation
Interpolation
Santhanam Krishnan
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
Tarun Gehlot
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
Harshad Koshti
 
Initial Value Problems
Initial Value ProblemsInitial Value Problems
Initial Value Problems
Mohammad Tawfik
 
Newton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleNewton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with Example
MuhammadUsmanIkram2
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
VARUN KUMAR
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical Integration
Tausif Shahanshah
 
Interpolation in Numerical Methods
Interpolation in Numerical Methods Interpolation in Numerical Methods
Interpolation in Numerical Methods
Dr. Tushar J Bhatt
 
Interpolation
InterpolationInterpolation
Interpolation
Bhavik A Shah
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical Analysis
Mostafijur Rahman
 
Interpolation Methods
Interpolation MethodsInterpolation Methods
Interpolation Methods
Mohammad Tawfik
 
Newton's forward difference
Newton's forward differenceNewton's forward difference
Newton's forward difference
Raj Parekh
 

What's hot (20)

Fixed point iteration
Fixed point iterationFixed point iteration
Fixed point iteration
 
Runge kutta method -by Prof.Prashant Goad(R.C.Patel Institute of Technology,...
Runge  kutta method -by Prof.Prashant Goad(R.C.Patel Institute of Technology,...Runge  kutta method -by Prof.Prashant Goad(R.C.Patel Institute of Technology,...
Runge kutta method -by Prof.Prashant Goad(R.C.Patel Institute of Technology,...
 
Es272 ch6
Es272 ch6Es272 ch6
Es272 ch6
 
Bisection method
Bisection methodBisection method
Bisection method
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Euler and runge kutta method
Euler and runge kutta methodEuler and runge kutta method
Euler and runge kutta method
 
Lagrange’s interpolation formula
Lagrange’s interpolation formulaLagrange’s interpolation formula
Lagrange’s interpolation formula
 
Interpolation
InterpolationInterpolation
Interpolation
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
 
Initial Value Problems
Initial Value ProblemsInitial Value Problems
Initial Value Problems
 
Newton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleNewton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with Example
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical Integration
 
Interpolation in Numerical Methods
Interpolation in Numerical Methods Interpolation in Numerical Methods
Interpolation in Numerical Methods
 
Unit vi
Unit viUnit vi
Unit vi
 
Interpolation
InterpolationInterpolation
Interpolation
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical Analysis
 
Interpolation Methods
Interpolation MethodsInterpolation Methods
Interpolation Methods
 
Newton's forward difference
Newton's forward differenceNewton's forward difference
Newton's forward difference
 

Similar to Interpolation

Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
Tarun Gehlot
 
Numerical Methods and Analysis
Numerical Methods and AnalysisNumerical Methods and Analysis
138191 rvsp lecture notes
138191 rvsp lecture notes138191 rvsp lecture notes
138191 rvsp lecture notes
Ahmed Tayeh
 
1. newtonsforwardbackwordinterpolation-190305095001.pdf
1. newtonsforwardbackwordinterpolation-190305095001.pdf1. newtonsforwardbackwordinterpolation-190305095001.pdf
1. newtonsforwardbackwordinterpolation-190305095001.pdf
FaisalMehmood887349
 
maths ppt.pdf
maths ppt.pdfmaths ppt.pdf
maths ppt.pdf
nihaiqbal1
 
maths ppt.pdf
maths ppt.pdfmaths ppt.pdf
maths ppt.pdf
nihaiqbal1
 
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
polanesgumiran
 
Rosser's theorem
Rosser's theoremRosser's theorem
Rosser's theorem
Wathna
 
PROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTIONPROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTION
shahzadebaujiti
 
Newton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptxNewton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptx
RishabhGupta238479
 
Fismat chapter 4
Fismat chapter 4Fismat chapter 4
Fismat chapter 4
MAY NURHAYATI
 
differential-calculus-1-23.pdf
differential-calculus-1-23.pdfdifferential-calculus-1-23.pdf
differential-calculus-1-23.pdf
IILSASTOWER
 
Sbma 4603 numerical methods Assignment
Sbma 4603 numerical methods AssignmentSbma 4603 numerical methods Assignment
Sbma 4603 numerical methods Assignment
Saidatina Khadijah
 
interpolation-190605141327 (1).pptx
interpolation-190605141327 (1).pptxinterpolation-190605141327 (1).pptx
interpolation-190605141327 (1).pptx
singhakhil952
 
interpolation-190605141327 (1).pptx
interpolation-190605141327 (1).pptxinterpolation-190605141327 (1).pptx
interpolation-190605141327 (1).pptx
singhakhil952
 
Study Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and IntegrationStudy Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and Integration
Meenakshisundaram N
 
Fórmulas de Taylor
Fórmulas de TaylorFórmulas de Taylor
Fórmulas de TaylorKike Prieto
 
Interpolation.pptx
Interpolation.pptxInterpolation.pptx
Interpolation.pptx
RamilDTolentino
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
vishal kathiriya
 
Mathematical formula tables
Mathematical formula tablesMathematical formula tables
Mathematical formula tables
Saravana Selvan
 

Similar to Interpolation (20)

Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
 
Numerical Methods and Analysis
Numerical Methods and AnalysisNumerical Methods and Analysis
Numerical Methods and Analysis
 
138191 rvsp lecture notes
138191 rvsp lecture notes138191 rvsp lecture notes
138191 rvsp lecture notes
 
1. newtonsforwardbackwordinterpolation-190305095001.pdf
1. newtonsforwardbackwordinterpolation-190305095001.pdf1. newtonsforwardbackwordinterpolation-190305095001.pdf
1. newtonsforwardbackwordinterpolation-190305095001.pdf
 
maths ppt.pdf
maths ppt.pdfmaths ppt.pdf
maths ppt.pdf
 
maths ppt.pdf
maths ppt.pdfmaths ppt.pdf
maths ppt.pdf
 
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
 
Rosser's theorem
Rosser's theoremRosser's theorem
Rosser's theorem
 
PROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTIONPROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTION
 
Newton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptxNewton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptx
 
Fismat chapter 4
Fismat chapter 4Fismat chapter 4
Fismat chapter 4
 
differential-calculus-1-23.pdf
differential-calculus-1-23.pdfdifferential-calculus-1-23.pdf
differential-calculus-1-23.pdf
 
Sbma 4603 numerical methods Assignment
Sbma 4603 numerical methods AssignmentSbma 4603 numerical methods Assignment
Sbma 4603 numerical methods Assignment
 
interpolation-190605141327 (1).pptx
interpolation-190605141327 (1).pptxinterpolation-190605141327 (1).pptx
interpolation-190605141327 (1).pptx
 
interpolation-190605141327 (1).pptx
interpolation-190605141327 (1).pptxinterpolation-190605141327 (1).pptx
interpolation-190605141327 (1).pptx
 
Study Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and IntegrationStudy Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and Integration
 
Fórmulas de Taylor
Fórmulas de TaylorFórmulas de Taylor
Fórmulas de Taylor
 
Interpolation.pptx
Interpolation.pptxInterpolation.pptx
Interpolation.pptx
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Mathematical formula tables
Mathematical formula tablesMathematical formula tables
Mathematical formula tables
 

Recently uploaded

Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
sachin783648
 
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Sérgio Sacani
 
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Sérgio Sacani
 
FAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable PredictionsFAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable Predictions
Michel Dumontier
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
IqrimaNabilatulhusni
 
Predicting property prices with machine learning algorithms.pdf
Predicting property prices with machine learning algorithms.pdfPredicting property prices with machine learning algorithms.pdf
Predicting property prices with machine learning algorithms.pdf
binhminhvu04
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
pablovgd
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
ChetanK57
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
Richard Gill
 
extra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdfextra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdf
DiyaBiswas10
 
ESR_factors_affect-clinic significance-Pathysiology.pptx
ESR_factors_affect-clinic significance-Pathysiology.pptxESR_factors_affect-clinic significance-Pathysiology.pptx
ESR_factors_affect-clinic significance-Pathysiology.pptx
muralinath2
 
Lateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensiveLateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensive
silvermistyshot
 
Penicillin...........................pptx
Penicillin...........................pptxPenicillin...........................pptx
Penicillin...........................pptx
Cherry
 
Structures and textures of metamorphic rocks
Structures and textures of metamorphic rocksStructures and textures of metamorphic rocks
Structures and textures of metamorphic rocks
kumarmathi863
 
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
Health Advances
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
Lokesh Patil
 
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
muralinath2
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
muralinath2
 
insect morphology and physiology of insect
insect morphology and physiology of insectinsect morphology and physiology of insect
insect morphology and physiology of insect
anitaento25
 
filosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptxfilosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptx
IvanMallco1
 

Recently uploaded (20)

Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
 
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
 
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
 
FAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable PredictionsFAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable Predictions
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
 
Predicting property prices with machine learning algorithms.pdf
Predicting property prices with machine learning algorithms.pdfPredicting property prices with machine learning algorithms.pdf
Predicting property prices with machine learning algorithms.pdf
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
 
extra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdfextra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdf
 
ESR_factors_affect-clinic significance-Pathysiology.pptx
ESR_factors_affect-clinic significance-Pathysiology.pptxESR_factors_affect-clinic significance-Pathysiology.pptx
ESR_factors_affect-clinic significance-Pathysiology.pptx
 
Lateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensiveLateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensive
 
Penicillin...........................pptx
Penicillin...........................pptxPenicillin...........................pptx
Penicillin...........................pptx
 
Structures and textures of metamorphic rocks
Structures and textures of metamorphic rocksStructures and textures of metamorphic rocks
Structures and textures of metamorphic rocks
 
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
 
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
 
insect morphology and physiology of insect
insect morphology and physiology of insectinsect morphology and physiology of insect
insect morphology and physiology of insect
 
filosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptxfilosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptx
 

Interpolation

  • 1. S.N.PATEL INSTITUTE OF TECHNOLOGY AND RESEARCH CENTRE Computational Method for Mechanical Engineering Prepared by : Padhiyar Brijesh R. (170490728009)
  • 2. Interpolation Interpolation means to find values of function f(x) for an x between different x-values x0, x1…, xn at which the values of f(x) are given.
  • 4. NEWTON’S FORWARD INTERPOLATION • Formula of Newton’s Forward Interpolation 𝑦 𝑛 𝑥 = 𝑦0 + 𝑝𝚫𝑦0 + 𝑝(𝑝 − 1) 𝚫2 𝑦0 + 𝑝(𝑝 − 1)(𝑝 − 2) 2! 3! 𝚫3 𝑦0 +⋯ + 𝑝(𝑝 − 1) (𝑝 − 2)…(𝑝 − 𝑛 + 1) 𝑛! 𝚫 𝑛 𝑦0 Here :- 𝑝 = 𝑥−𝑥0 ℎ
  • 5. EXAMPLE • Find The value Of 𝒕𝒂𝒏 0.12 𝑥 0.10 0.15 0.20 0.25 0.30 𝑦 = 𝑡𝑎𝑛 𝑥 0.1003 0.1511 0.2027 0.2553 0.3093
  • 6. Solution X Y Δ Δ2 Δ3 Δ4 0.10 0.1003 0.0508 0.15 0.1511 0.0008 0.0516 0.0002 0.20 0.2027 0.0010 0.0002 0.0526 0.0004 0.25 0.2553 0.0014 0.0540 0.30 0.3093
  • 7. Applying Newton’s Forward Difference Interpolation Formula. 𝑦 𝑛 (x) = 𝑦0 + 𝑝𝚫𝑦0 + 𝚫2 𝑦0 + 𝑝(𝑝 − 1) 𝑝(𝑝 − 1) (𝑝 − 2) 2! 3! 𝚫3 𝑦0 + 𝑝(𝑝 − 1)(𝑝 − 2)(𝑝 − 3) 4! 𝚫4 𝑦0 Here 𝑦 𝑛 (x) = tan(0.12) ∴ 𝑝 = 𝑥−𝑥0 = 0.12−0.10 = 0.02 = 0.4 ℎ 0.05 0.05 ∴ 𝑦 𝑛 (𝑥)= 0.1003 + 0.4( 0.0508) (0.4−2) + 0.4 0.4−1 0.0008 + 0.4(0.4−1) 2 6 24 0.0002 + 0.4( 0.4−1)(0.4−2)(0.4−3) 0.0002 𝑦 𝑛 (x)= 0.1205
  • 8. NEWTON’S BACKWARD INTERPOLATION • Formula of Newton’s Backward Interpolation 𝑦 𝑛 (x) = 𝑦 𝑛 𝑝𝛁𝑦 𝑛 + 𝑝(𝑝 + 1) 2! 𝛁2 𝑦 𝑛 + ⋯+ 𝑝(𝑝 − 1) … (𝑝 + 𝑛 − 1) 𝑛! 𝛁 𝑛 𝑦 𝑛 Here :- 𝑝 = + X - Xn h
  • 9. EXAMPLE • Consider Following Tabular Values Determine y (300) 𝑥 50 100 150 200 250 𝑦 618 724 805 906 1032
  • 10. Solution X Y 𝛁 𝛁2 𝛁3 𝛁4 50 618 106 100 724 -25 81 45 150 805 20 -40 101 5 200 906 5 126 250 1032
  • 11. Applying Newton’s Backward Difference interpolation Formula. 𝑦 𝑛 (𝑥 )= 𝑦0 + 𝑝𝛁𝑦 𝑛 + 𝑝(𝑝 − 1) 2! 𝛁2 𝑦 𝑛 + 𝑝(𝑝 − 1)(𝑝 − 2) 3! 𝛁3 𝑦 𝑛 + 𝑝(𝑝 − 1)(𝑝 − 2)(𝑝 − 3) 4! 𝛁4 𝑦 𝑛 Here, 𝑦 𝑛 (𝑥 ) = 𝑦 𝑛 (300) ∴ 𝑝 = 𝑥−𝑥 𝑛 = 300−250 = 1 ℎ 50 ∴ 𝑦n(x) = 1032 + 126+ 1(1+1) 2! 25 + 1( 1+1)(1+2) 3! 5 + 1( 1+1)(1+2)(1+3) 4! (−40) = 1032 + 126 + 25 + 5 −4 𝑦 𝑛(300) = 1148
  • 13. NEWTON’S DEVIDED DIFFERENCE FORMULA         0 0 0 1 0 1 0 1 2.....f x y x x x x x x x x x x x     
  • 14. Example : Find the polynomial of the lowest possible degree which assumes the values 3, 12, 15,-21 when x has the values 3, 2, 1,-1, respectively. Hence find f(0).
  • 15. Solution X Y Δ Δ2 Δ3 -1 -21 18 1 15 -7 -3 1 2 12 -3 -9 3 3
  • 16. Using Newton’s divided difference formula, we get f(x)=−21+(x − (−1)) * 18 +(x +1) (x − 1) * (−7) + (x + 1) (x − 1) (x − 2) * 1 = −21 + 18 (x + 1) + (x2 −1) (−7) + (x3 - 2x2 – x +2) f(x) =x3 - 9x2 + 17x + 6 Hence f(0) = 6.
  • 17. LANGRANGE’S INTERPOLATION 1 2 0 0 1 0 2 0 0 2 1 1 0 1 2 1 0 1 2 2 0 2 1 2 ( )( )........( ) ( ) ( )( )........( ) ( )( )........( ) ( )( )........( ) ( )( )........( ) + ..... ( )( )........( ) n n n n n n x x x x x x F x y x x x x x x x x x x x x y x x x x x x x x x x x x y x x x x x x                     ...
  • 18. EXAMPLE • Compute f(0.3) for the data 𝑥 0 1 3 4 7 f 1 3 49 129 813
  • 19. 1 2 0 0 1 0 2 0 0 2 1 1 0 1 2 1 0 1 2 2 0 2 1 2 ( )( )........( ) ( ) ( )( )........( ) ( )( )........( ) ( )( )........( ) ( )( )........( ) + ..... ( )( )........( ) n n n n n n x x x x x x F x y x x x x x x x x x x x x y x x x x x x x x x x x x y x x x x x x                     ... (0.3−1)(0.3−3)(0.3−4)(0.3−7) (0.3−0)(0.3−3)(0.3−4)(0.3−7) (0.3−0)(0.3−1)(0.3−4)(0.3−7) (0.3−0)(0.3−1)(0.3−3)(0.3−7) (0.3−0)(0.3−1)(0.3−3)(0.3−4) (−1)(−3)(−4)(−7) (1)(-2)(−3)(−6) (3)(2)(−1)(−4) (4)(3)(1)(−3) (4)(3)(6)(7) *1+= *49+*3+ *813*129+ = 1.831