Documente Academic
Documente Profesional
Documente Cultură
INTEGRANTES:
RODRIGUEZ SANDOVAL DIEGO DAVID REYES GONZALEZ FABIAN MARTINEZ CARMONA VICTOR PEREZ LIBREROS LUIS ENRIQUE
puntof(xi,tol,maxit)
i=1
funcin g(x)
band=f
ciclo w hile_do
g=.....
retornar
si
x=g(x)
mtodo no converge
raiz= x
Si
|x-xi|<=tol retornar
No
band=v
i=i+1
xi=x
new tonr(xi,tol,maxit)
funcin fx(x)
i=1
fx=.....
band=f
ciclo w hile_do
retornar
funcin fp(x)
band=f o i<=maxit
fp=.....
si
band=v
Si
No
xi=xi-fx(xi)/fp(xi)
mtodo no converge
retornar
raiz= xi
Si
|f(xi)|<=tol retornar
No
band=v
i=i+1
LENGUAJE DE PROGRAMACION
disp ('NEWTON-RAPHSON') xo=input('Valor inicial ='); n=input ('numero de iteraciones='); salida=ones(n,4); % matiz de salida de datos for i=1:n x1=xo-[(exp(-xo)-xo)]/[(-exp(-xo)-1)]; vsal=[xo;x1]; er=[[abs((xo-x1)/xo)]]*100; % error relativo porcentual ea=[[abs((x1-xo)/x1)]]*100; % error xo=x1; Salida Salida Salida Salida (i,1)=i; (i,2)=x1; (i,3)=er; (i,4)=ea;
METODO DE LA SECANTE
DIAGRAMA DE FLUJO
msecante(x0,x1,tol1,tol2,maxit)
funcin fx(x)
i=1
fx=.....
band=f
ciclo w hile_do
retornar
si
x=x0-(x1-x0)*fx(x0)/ (fx(x1)-fx(x0))
mtodo no converge
raiz= x
Si
|x-x1|<=tol1 retornar
No
band=v
Si
|f(x)|<=tol2
No
band=v
x0=x1
x1=x
i=i+1