Newton's Forward Interpolation
Version 1.0.01 (1.49 KB) by
Dr. Manotosh Mandal
Matlab codes for Newton's Forward Interpolation.
For details of the method and also coding watch the lecture: https://youtu.be/_94kInONp2w
Example:
Enter the values of independent variable x in an array:
[1:1:6]
Enter the values of dependent variable y in an array:
[1 8 27 65 123 208]
Enter the value of x where we want to find the value of f(x): 1.15
The forward difference table is:
d =
7 12 7 -6 12
19 19 1 6 0
38 20 7 0 0
58 27 0 0 0
85 0 0 0 0
The required value is f(1.15)= 1.9871>>
Cite As
Dr. Manotosh Mandal (2024). Newton's Forward Interpolation (https://www.mathworks.com/matlabcentral/fileexchange/72581-newton-s-forward-interpolation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Interpolation >
Find more on Interpolation in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.