10.05.2013 Views

texto: metodos numericos para ecuaciones diferenciales ordinarias

texto: metodos numericos para ecuaciones diferenciales ordinarias

texto: metodos numericos para ecuaciones diferenciales ordinarias

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Para cada i = 1, 2,...,m<br />

Para cada i = 1, 2,...,m<br />

k3,j = hfi(xj + 1<br />

2 h,y1,j + 1<br />

2 k2,1,y2,j + 1<br />

2 k2,2,...,ym,j + 1<br />

2 k2,m)<br />

k4,j = hfi(xj + h,y1,j + k3,1,y2,j + k3,2,...,ym,j + k3,m)<br />

3.5.1. Algoritmo del Método de Runge-Kutta de Cuarto Orden<br />

<strong>para</strong> sistemas<br />

Este algoritmo aproxima la solución del problema de valor inicial<br />

u ′ j = fj(x,u1,u2,...,um) uj(a) = αj a ≤ x ≤ b<br />

<strong>para</strong> j = 1, 2,...,m en N + 1 puntos equidistantes en el intervalo [a,b].<br />

ENTRADA: Los extremos del intervalo a y b; número de <strong>ecuaciones</strong> m; entero N;<br />

condiciones iniciales α1,α2,...,αm.<br />

SALIDA: Aproximaciones yj a uj(x) en los N + 1 valores de x.<br />

1. Hacer h =<br />

b − a<br />

; x = a<br />

N<br />

2. Para j=1,...,m, hacer yj,0 = αj<br />

3. Para i = 0, 2,...,N − 1 haga los pasos a al g.<br />

a. Para j = 1, 2,...,m hacer<br />

b. Para j = 1, 2,...,m hacer<br />

k1,j = hfi(xj,y1,j,y2,j,...,ym,j)<br />

k2,j = hfi(xj + 1<br />

2 h,y1,j + 1<br />

2 k1,1,y2,j + 1<br />

2 k1,2,...,ym,j + 1<br />

2 k1,m)<br />

c. Para j = 1, 2,...,m hacer<br />

k3,j = hfi(xj + 1<br />

2 h,y1,j + 1<br />

2 k2,1,y2,j + 1<br />

2 k2,2,...,ym,j + 1<br />

2 k2,m)<br />

d. Para j = 1, 2,...,m hacer<br />

k4,j = hfi(xj + h,y1,j + k3,1,y2,j + k3,2,...,ym,j + k3,m)<br />

28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!