Effacer les filtres
Effacer les filtres

richardson extrapolation method wrong

2 vues (au cours des 30 derniers jours)
DDD
DDD le 2 Avr 2015
Why is this richardson extrapolation method wrong?
function D=f_richardson(f,n,h,x0)
D=zeros(n,n);
e=zeros(n);
for t=1:n
D(1,t)=(f(x0+(2^(t-1))*h)-f(x0-(2^(t-1)*h)))/(2*((2^(t-1)*h)));
end
o=n-1;
for l=2:n
for k=1:o
D(l,k)=((2^(2*n-1))*D(l-1,k)-D(l-1,k+1))/(2^(2*n-1)-1);
end
o=o-1;
end
end

Réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by