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.

3.1 Hacer<br />

4. Parar<br />

k1 = hf(xi,wi)<br />

k2 = hf(xi + h<br />

4 ,wi + 1<br />

4 k1)<br />

k3 = hf(xi + 3<br />

8 h,wi + 3<br />

32 k1 + 9<br />

32 k2)<br />

k4 = hf(xi + 12<br />

13 h,wi + 1932<br />

2197 k1 − 7200<br />

2197 k2 + 7296<br />

2197 k3)<br />

k5 = hf(xi + h,wi + 439<br />

216 k1 − 8k2 + 3680<br />

513 k3 − 845<br />

4104 k4)<br />

k6 = hf(xi + 1<br />

2 h,wi − 8<br />

27 k1 + 2k2 − 3544<br />

2565 k3 + 1859<br />

4104 k4 − 11<br />

40 k5)<br />

3.2 Tome R = 1 1 | h 360k1 − 128<br />

4275k3 − 2197<br />

75240k4 + 1<br />

50k5 + 2<br />

55k6| 3.3 Si R ≤ TOL entonces hacer<br />

3.3.1 Hacer x = x + h<br />

3.3.2 SALIDA (x,w,h)<br />

3.4 Tome δ = 0.84(TOL/R) 1/4<br />

(R = 1<br />

h | ¯wi+1 − wi+1|)<br />

w = w + 25<br />

216 k1 + 1408<br />

2565 k3 + 2197<br />

4104 k4 − 1<br />

5 k5<br />

3.5 Si δ ≤ 0.1 entonces tome h=0.1h o si ≥ 0.4 entonces tome h = 4h de otro<br />

modo tome h = hδ<br />

3.6 Si h > hmax entonces h = hmax<br />

3.7 Si t ≥ b entonces tome BD = 0 de otro modo si x + h > b entonces tome<br />

h = b−x de otro modo si h < hmin entonces tome BD = 0; SALIDA(rebasado<br />

h mínimo)<br />

4.2. Programa del Método de Runge-Kutta-<br />

Fehlberg<br />

El programa se llama rungkufeh2 y resuelve el problema planteado en el ejemplo<br />

indicado abajo, si se quiere resolver otra ecuación diferencial, se cambia en el programa<br />

54

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

Saved successfully!

Ooh no, something went wrong!