Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clc
- close all
- clear all
- %f(x)=2*sin-x;
- %g2(x)=2*(sqrt(1-(cos(x))^2))
- g=inline('2*(sqrt(1-(cos(x))^2))');
- %g=inline('2*sin(x)');
- %g=inline('arcsin((1/2)*x)')
- x0=1;
- itmax=50;
- eps=0.00001;
- [alpha,erreur,niter]= pointfixe(g,x0,itmax,eps)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement