Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Del alumno
Al profesor
Angel Sangiacomo
Asunto
Mtodo de Euler
Fecha
02-09-2015
t f t 0
n
F' ( t ) =
dy
p =f (t 0 , y 0 )
dt 0
Con esta informacin se traza una recta, aquella que pasa por p 0 y de
pendiente
f (t 0 , y 0)
Tmese la recta como reemplazo de F(t) y localcese en ella (la recta) el valor
de y correspondiente a t1 Entonces, podemos deducir segn la Grfica A:
y1 y0
=f (t 0 , y 0)
t 1 t 0
Se resuelve y1
y 1= y 0 + ( t 1t 0 ) f ( t 0 , y 0 ) = y 0+ h f ( t 0 , y 0 )
y 1= y 0 +h f ( t 0 , y 0 )
y 2= y 0 +h f ( t 1 , y1 )
y i+1= yi +h f ( t i , y i )
y n= y n1 +h f ( t n1 , y n1 )
Qu hace?
Obtiene una aproximacin al problema de valor inicial bien planteado.
at b
y
=f ( t , y )
t
y 0=a
y i+1= yi +hf ( t i , y i )
Variables:
fu: Funcin f(t,y) en formato texto debe contener variables t y y
vi: Valor de Valor Inicial
a: Valor de a
b: Valor de b
n: Numero de iteraciones
h: Tamao de paso
ti: Valor Inicial de la variable t
yii: Valores de la variable y obtenido por el mtodo de euler
Algoritmo
function f=f(z,t,y)
f=eval(z);
METODO DE EULER
ingrese funcion f(t,y) = 't+y'
ingrese Valor de Valor Inicial = 0
ingrese Valor de A = 0
ingrese Valor de B = 1
ingrese iteraciones = 10
h=
0.100000000000000
ti
y(ti)
0.00000
0.10000
0.20000
0.30000
0.40000
0.50000
0.60000
0.70000
0.80000
0.90000
1.00000
0.00000
0.00000
0.01000
0.03100
0.06410
0.11051
0.17156
0.24872
0.34359
0.45795
0.59374