Borrar filtros
Borrar filtros

Gauss forward interpolation formula

15 visualizaciones (últimos 30 días)
PJS KUMAR
PJS KUMAR el 17 de Oct. de 2018
Comentada: Ismail Khan Totakhil el 18 de Mzo. de 2021
n = length(x)
I created the difference table (tbl) using the following code. difference table is in attached file
tbl=y';
for j=2:n
for i=1:n-j+1
tbl(i,j)=tbl(i+1,j-1)-tbl(i,j-1);
end
end
p = (xp – x0) / h
yp = y0 + p.dy0 + p(p-1) (d2 y-1 + d3 y-1 ) / 2! + p(p-1) (p-2) (d3 y-1 + d4 y-1 ) / 3! +
p(p-1) (p-2)(p-3) (d4 y-1 + d5 y-1 ) / 4! + p(p-1) (p-2)(p-3)(p-4) (d5 y-1 + d6 y-1 ) / 5!
I created a vector with the terms 1, p, p(p-1), p(p-1)(p-2)…p(p-1)(p-2)..(p-(n-2)) as t=cumprod([1,p-(0:n-2)]);
Now, suggest me the code to create a vector with the following terms
y0 , dy0 , (d2 y-1 + d3 y-1 ) / 2! , (d3 y-1 + d4 y-1 ) / 3! , (d4 y-1 + d5 y-1 ) / 4! ,
(d5 y-1 + d6 y-1 ) / 5! , …….
  4 comentarios
Anton Gluchshenko
Anton Gluchshenko el 18 de Nov. de 2020
Editada: Anton Gluchshenko el 18 de Nov. de 2020
Sorry. But It is not your code... or?
Ismail Khan Totakhil
Ismail Khan Totakhil el 18 de Mzo. de 2021
Good one sir, can u show me the code of Newton backwards interpolation... Thank u sir..

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by