Info

此问题已关闭。 请重新打开它进行编辑或回答。

Newton's forward difference table

2 次查看(过去 30 天)
Greg
Greg 2011-10-28
Hi everybody I'm a little bit stuck on this two part question if you could help me out that would be great with working to see which part I'm doing wrong.
First I have to write a function with thefollowing description to construct the Newton’s forward difference table. function T = forward_differences(Y) %FORWARD_DIFFERENCES Newton’s forward differences % T = FORWARD_DIFFERENCES(Y) returns Newton’s forward difference table. % Note that the forward difference table is laid out in the matrix T as: % y0 % y1 del y0 % y2 del y1 del^2 y0 % y3 del y2 del^2 y1 del^3 y0 % etc. %The rest of the matrix T is zero.
The second part is to write a funciton with the following description to actually evaluate the polynomial function y = forward_eval(X, T, x) %FORWARD_EVAL Evaluate Newton’s forward difference form of the %interpolating polynomial % y = FORWARD_EVAL(X, T, x) returns y = Pn(x), where Pn is the % interpolating polynomial constructed using the abscissas X and forward % difference table T Hence, your submission will consis

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by