Advertisement
Guest User

mynewton

a guest
Sep 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. eps=0.000 1; %précision de la solution
  2. nrMax =100; % Le nombre max des itéraions à ne pas dépasser
  3. iter=0;
  4. X0=[0;6;1;4]; % Valeurs initiales, arbitraire : tentez desvaleurs différentes
  5. x=X0
  6. TabF=[@Fonc1,@Fonc2,@Fonc3,@Fonc4];
  7. ImgF=[Fonc1(x);Fonc2(x);Fonc3(x);Fonc4(x)];
  8. vnorm = norm(inv(MaJacob2(TabF,x))*ImgF);
  9. while(vnorm>eps & iter<NrMax)
  10. x=x-inv(MaJacob2(TabF,x))*ImgF;
  11. ImgF=[Fonc1(x),Fonc2(x),Fonc3(x),Fonc4(x)];
  12. vnorm = norm();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement