Description |
Script for Newton's Interpolation
newton_interpolation(x, y, p)
x and y are two Row Matrices and p is point of interpolation
Example
>> x=[1,2,4,7,8]
>> y=[-9,-41,-189,9,523]
>> newton_interpolation(x, y, 5)
OR
>> a = newton_interpolation(x, y, 5) |