Advertisement
Minzjustcmonffs

Untitled

Jun 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. clc
  2. close all
  3. clear all
  4. %f(x)=2*sin-x;
  5. %g2(x)=2*(sqrt(1-(cos(x))^2))
  6. g=inline('2*(sqrt(1-(cos(x))^2))');
  7. %g=inline('2*sin(x)');
  8. %g=inline('arcsin((1/2)*x)')
  9. x0=1;
  10. itmax=50;
  11. eps=0.00001;
  12. [alpha,erreur,niter]= pointfixe(g,x0,itmax,eps)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement