Académique Documents
Professionnel Documents
Culture Documents
I. La méthode de dichotomie :
function [c ,nit]=dichotomie(f,a,b)
nit =0 ;
c=(a+b)/2 ;
if f(a)*f(c)<0 b=c ;
else a=c ;
end
c=(a+b)/2;
nit=nit+1 ;
end
function xc=fpi(g,x0,k)
x = [x0;zeros(k,1)];
for i = 1:k
x(i+1) = g(x(i));
end
xc = x(k+1);
end