Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Newton's forward difference table

1 visualización (últimos 30 días)
Greg
Greg el 28 de Oct. de 2011
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

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by