What is Interpolation?
Interpolation is a method of finding new data points within the range of a discrete set of known data points (Source Wiki). In other words interpolation is the technique to estimate the value of a mathematical function, for any intermediate value of the independent variable.
For example, in the given table we’re given 4 set of discrete data points, for an unknown function f(x) :
How to find?
Here we can apply the Lagrange’s interpolation formula to get our solution.
The Lagrange’s Interpolation formula:
If, y = f(x) takes the values y0, y1, … , yn corresponding to x = x0, x1 , … , xn then,
This method is preferred over its counterparts like Newton’s method because it is applicable even for unequally spaced values of x.
We can use interpolation techniques to find an intermediate data point say at x = 3.
Value of f(3) is : 35
The time complexity of the above solution is O(n2) and auxiliary space is O(1).
Higher Engineering Mathematics , Dr. B.S. Grewal
This article is contributed by Ashutosh Kumar. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
- Program for Stirling Interpolation Formula
- Newton Forward And Backward Interpolation
- Bessel's Interpolation
- Newton's Divided Difference Interpolation Formula
- Program to implement Inverse Interpolation using Lagrange Formula
- Kth number from the set of multiples of numbers A, B and C
- Find the previous fibonacci number
- Find the quadratic equation from the given roots
- Smallest N digit number which is a perfect fourth power
- Angle subtended by an arc at the centre of a circle
- Count of 0s in an N-level hexagon
- Number of words that can be made using exactly P consonants and Q vowels from the given string
- Count of elements on the left which are divisible by current element
- Find the minimum value of X for an expression