Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Newton's forward difference table
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!