You are on page 1of 1

Function euler1()

Syms x y
F=input(Ingrese(dy/dx): );
Y0=input(y0:);
X0=input(x0);
Xf=input(xf);
H=input(ingrese tamao de paso:);
While x0<xf
Funcion1=doubl(subs(F,y0));
Ymas1=y0+h*funcion1;
Y0=ymas1;
X0=x0+h;
Fprintf(Elvalor de y(%5.4f) : %5.6f\n, x0,y0);
end X0=input(x0);

You might also like