Newton's Divided Differences and its associated Polynomial

バージョン 1.0.1 (2.04 KB) 作成者: Manuel A. Diaz
Computes Newton's table for Divided Differences and the coefficients of the associated polynomial function for a given dataset (X,Y).
ダウンロード: 197
更新 2022/11/3

ライセンスの表示

This function solves the following formula:
Pn(x) = f(x0) + f[x0,x1](x-x0) + f[x0,x1,x2](x-x0)(x-x1) + ... + f[x0,x1,..,xn](x-x0)(x-x1)..(x-x[n-1]),
where:
f[x0,x1] = (f(x1-f(x0))/(x1-x0),
f[x0,x1,..,xn] = (f[x1,..,xn]-f[x0,..,x_[n-1]])/(xn-x0), .... ,
i.e. the divided differences.
This function was inspired by the function by the Divided Differences function of T.R.
Here, I simply added the capability of directly outputting the coefficients of the associated polynomial. So that the polynomial can be evaluated to produce interpolations/extrapolations directly with Matlab's 'polyval' function.
Happy coding ; )

引用

Manuel A. Diaz (2024). Newton's Divided Differences and its associated Polynomial (https://www.mathworks.com/matlabcentral/fileexchange/91130-newton-s-divided-differences-and-its-associated-polynomial), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2019b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
謝辞

ヒントを得たファイル: Newton's Method for Divided Differences.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.1

A terrible bug has been fixed!
Thanks to Manuel Villar Atensio @ Univ-Santiago de Chile for helping me to catch it.

1.0.0