Documentos de Académico
Documentos de Profesional
Documentos de Cultura
c=c +1
𝐲𝟏 = 𝒚𝟎 + 𝒉 ∗ 𝒇(𝒙𝟎 , 𝒚𝒎𝒆𝒅 )
𝒙 𝟏 = 𝒙𝒐 + 𝒉
𝑦1 = yo + h ∗ f(xo, yo)
𝑥1 = 𝑥𝑜 + ℎ 𝒉 𝒙𝟏 = 𝒙𝒐 + 𝒉
𝒚𝟏 = 𝒚𝟎 + 𝟐 ∗ (𝒇(𝒙𝟎, 𝒚𝟎 ) + 𝒇(𝒙𝟏 , 𝒚𝒑 ))
if y1<= yF if y1<= yF
if y1<= yF
break
break break
else xo=x1
else xo=x1 else xo=x1
yo=y1
yo=y1
yo=y1 end
end
imprimimos: c, x1 , y1
end imprimimos: c, x1 , y1
imprimimos: c, y1,x1 end
end
METODOS NUMERICOS
𝒙𝟏 = 𝒙 𝒐 + 𝒉
ECUACIONES
if y1<= yF
DIFERENCIALES
break
ORDINADIAS
else xo=x1 SISTEMAS DE EDOS
yo=y1
end F’(X) F’(X,Y)
imprimimos: c, x1 , y1
end
PRQ 3232
a= la función
METODO DE RK 2do ORDEN METODO DE RK 3do ORDEN METODO DE RK 4do ORDEN
t0 = t0 = t0 =
tF = tF = tF =
x0 = x0 = x0 =
h= h= h=
N=( tF -t0)/h N=( tF -t0)/h N=( tF -t0)/h
𝐤 𝟏 = 𝒇(𝒕𝟎 , 𝒙𝟎 ) 𝐤 𝟏 = 𝒇(𝒕𝟎 , 𝒙𝟎 )
𝒉 𝒉
𝐤 𝟏 = 𝒇(𝒕𝟎 , 𝒙𝟎 )
𝐤 𝟐 = 𝒇 (𝒕𝟎 + , 𝒙𝟎 + ∗ 𝒌𝟏) 𝒉 𝒉
𝐤 𝟐 = 𝒇(𝒕𝟎 + 𝒉, 𝒙𝟎 + 𝒉 ∗ 𝒌𝟏) 𝟐 𝟐 𝐤 𝟐 = 𝒇 (𝒕𝟎 + , 𝒙𝟎 + ∗ 𝒌𝟏)
𝐤 𝟑 = 𝒇(𝒕𝟎 + 𝒉, 𝒙𝟎 − 𝒌𝟏 ∗ 𝒉 + 𝟐𝒌𝟐 ∗ 𝒉) 𝟐 𝟐
𝒉 𝒉
𝒉 𝐤 𝟑 = 𝒇 (𝒕𝟎 + , 𝒙𝟎 + ∗ 𝒌𝟐)
𝟐 𝟐
𝒙𝟏 = 𝒙𝒐 + ( ) ∗ (𝒌𝟏 + 𝒌𝟐) 𝒉 𝐤 𝟒 = 𝒇(𝒕𝟎 + 𝒉, 𝒙𝟎 + 𝒉 ∗ 𝒌𝟑)
𝟐 𝒙𝟏 = 𝒙𝒐 + ( ) ∗ (𝒌𝟏 + 𝟒 ∗ 𝒌𝟐 + 𝒌𝟑)
𝟔
𝐭 𝟏 = 𝒕𝟎 + 𝒉 𝒉
𝒙𝟏 = 𝒙𝒐 + ( ) ∗ (𝒌𝟏 + 𝟐 ∗ 𝒌𝟐 + 𝟐 ∗ 𝒌𝟑 + 𝒌𝟒)
𝟔
𝐭 𝟏 = 𝒕𝟎 + 𝒉
𝐭 𝟏 = 𝒕𝟎 + 𝒉
imprimimos: i, t1 , x1
imprimimos: i, t1 , x1
imprimimos: i, t1 , x1
to=t1
to=t1
to=t1
xo=x1
end
xo=x1
xo=x1
end
end
function a=f(t,x)
function a=f(t,x)
a= la función function a=f(t,x)
a= la función
a= la función
METODO DEL DISPARO
z =[2 4] %son valores tanteados %===============================================
Imprimir: it,r1,T1,z1
tol = 0.0001
z1=z0+h/2*(f2(r0,T0,z0)+f2(r1,Tm,zm))