Você está na página 1de 2

UNIVERSIDAD MARIANO GALVEZ DE GUATEMALA, SAN JOSE PINULA.

INGENIERIA EN SISTEMAS Y CIENCIAS DE LA COMPUTACION

SECCION: “A”.

METODOS NUMERICOS

METODO DE NEWTON RHAPSON

INTEGRANTES:
LUIS CARLOS CHACON PUAC 3190-14-9680
JOSSELYN PAOLA LOPEZ HERNANDEZ 3190-15-4222
EDGAR JOSE NAVARRO DE LEON 3190-09-5554

GUATEMALA 02/06/2017.
function newtonmodificado
global fun dfun ddfun x0 it eval x
fprintf('metodo de newtonmodificado:\n');
fun=input('ingrese la funcion:\n','s');
x0=input('ingrese el punto inicial:\n');
eval=input('ingrese la tolerancia:\n');
dfun=diff(fun);
ddfun=diff(diff(fun));
it=0;
fprintf('it x0 x1 x0-x1');
while it<5
it=it+1; x=x0; x1=x0-((eval(fun)*eval(dfun))/((eval((dfun)^2))-
(eval(fun)*eval(ddfun))));
fprintf('el procedimiento se completo satisfactoriamente:\n');
break
end
x0=x1;
fprintf('la raiz buscada es =%15.9f\n',x1);
ezplot(fun),grid on
end

Você também pode gostar