bonjour svp j'ai fait un programme pour trouver le point fixe mais pour f(x)=exp(x)-4 ca marche pas volia le programme:
function MPF1(f)
x=-14:0.1:9;
y=x;
plot(x,y,'b-','linewidth',2)
hold on
plot(x,f(x),'r-','linewidth',2)
x1=2;
x2=f(x1);
iter=0;
while abs(x2-x1)>1e-8
plot([x1 x1],[x1 f(x1)],'k-')
plot([x1 x2],[x1 f(x2)],'k--')
pause
x1=x2;
x2=f(x1);
iter=iter+1;
end
iter
x2
end