Sei sulla pagina 1di 1

PSEUCODIGO METODO DE LA SECANTE

INICIO
Leer x0, x1, fx, error, iteraciones, r, fr, n, fx0, fx1;
fx0 3*(x0*x0*x0)+4*(x0*x0)+x0-10;
fx1 3*(x1*x1*x1)+4*(x1*x1)+x1-10;
r x1-(((x0-x1)*fx1)/(fx0-fx1));
fr 3*(r*r*r)+4*(r*r)+r-10;
n 1;
Mientras ((|fr|>error) y (n<interacciones)) hacer:
x0 x1;
x1 r;
n n+1;
Fin - mientras
Fin

Potrebbero piacerti anche