interpolation of unequal intervals and lagrange interpolation
Size: 77.68 KB
Language: en
Added: Feb 28, 2019
Slides: 7 pages
Slide Content
Gandhinagar Institute of Technology Numerical & Statistical Methods For Information Technology (2140706) Active Learning Assignment “Topic : Interpolation for unequal intervals and Lagrange's interpolation” Name: Vaani Pathak (170120107131) Branch : CE Div : B3
Interpolation with unequal intervals If the values of x are unequally spaced then interpolation formulae for equally spaced points cannot be used. It is therefore, desirable to develop interpolation formulae for unequally spaced values of x. There are two such formulae for unequally spaced values of x. Lagrange's interpolation formula. Newton’s interpolation formula with divided difference.
Lagrange Lagrange’s formula is applicable to problems where the independent variable occurs at equal and unequal intervals, but preferably this formula is applied in a situation where there are unequal intervals for the given independent series.
Lagrange's interpolation formula f(x) = (x-x 1 ) (x-x 2 )…. (x- x n ) y + (x- x ) (x-x 2 )….(x- x n ) y 1 (x - x 1 ) (x - x 2 )….(x - x n ) (x 1 – x )(x 1 – x 2 )….(x 1 - x n ) + (x- x ) (x- x 1 )….(x- x n-1 ) y n ( x n – x ) ( x n – x 1 )….( x n – x n-1 )
Example : Compute f(9.2) by using Lagrange's interpolation method from the following data : Solution : By Lagrange's interpolation formula, f(x) = (x - x 1 ) (x - x 2 ) f(x ) + (x- x ) (x- x 2 ) f(x 1 ) + (x - x 1 )(x – x 2 ) (x 1 - x )(x 1 – x 2 ) (x – x ) (x – x 1 ) f(x 2 ) (x 2 – x ) (x 2 - x 1 ) x 9 9.5 11 f(x) 2.1972 2.2513 2.3973