You are on page 1of 5

Universidad Tecnológica de Panamá

Facultad de Mecánica
Ingeniería Aeronáutica
Métodos Numéricos: 7895
Prof. Fernando Castillo

Tema: Método de Runge Kutta


Nombre: Joahn Levine 8-941-1545

Resolver gráfica y analíticamente.


𝑌 ′ = 𝑦 − 𝑡 2 + 1 ; 𝑦0 (𝑂) = 0.5 ; 0 < 𝑡 < 5 ; ℎ = 0.2 ; 𝑁 = 10 ; 𝑡 = 0.2

Interacción #1
𝑘1 = 0.5 − 02 + 1 = 1.5
1.5(0.2) 0.2 2
𝑘2 = (0.5 + ) − (0 + ) + 1 = 1.64
2 2

1.64(0.2) 0.2 2
𝑘3 = (0.5 + ) − (0 + ) + 1 = 1.654
2 2

𝑘4 = (0.5 + 1.654(0.2) − (0 + 0.2)2 + 1 = 1.7908

0.2
𝑦1 = 0.5 + (1.5 + 2(1.64) + 2(1.654) + 1.7908)
6

𝑦1 = 0.829293

Interacción #2
t=0.2; y=0.829293

𝑘1 = 0.829293 − 0.22 + 1 = 1.789293

1.789293(0.2) 0.2 2
𝑘2 = (0.829293 + ) − (0.2 + ) + 1 = 1.9182223
2 2

1.9182223(0.2) 0.2 2
𝑘3 = (0.829293 + ) − (0.2 + ) + 1 = 1.93111523
2 2

𝑘4 = (0.829293 + 1.93111523(0.2)) − (0.2 + 0.2)2 + 1 = 2.055516046

𝑦2 = 0.829293
0.2
+ (1.789293 + 2(1.9182223) + 2(1.93111523) + 2.055516046)
6

𝑦2 = 1.21367585
Universidad Tecnológica de Panamá
Facultad de Mecánica
Ingeniería Aeronáutica
Métodos Numéricos: 7895
Prof. Fernando Castillo

Interacción #3
t=0.4; y=1.21367585

𝑘1 = 2.05367585

𝑘2 = 2.169043435

𝑘3 = 2.18058

𝑘4 = 2.28979185

𝑦3 = 1.64843

Interacción #4
t=0.6; y=1.64843

𝑘1 = 2.28843

𝑘2 = 2.387273

𝑘3 = 2.3971573

𝑘4 = 2.48786146

𝑦4 = 2.12660

Interacción #5
t=0.8; y=2.12660

𝑘1 = 2.4866

𝑘2 = 2.56526

𝑘3 = 2.573126

𝑘4 = 2.6412252

𝑦5 = 2.64009
Universidad Tecnológica de Panamá
Facultad de Mecánica
Ingeniería Aeronáutica
Métodos Numéricos: 7895
Prof. Fernando Castillo

Interacción #6
t=1.0; y=2.64009

𝑘1 = 2.64009

𝑘2 = 2.694099

𝑘3 = 2.6994999

𝑘4 = 2.73998998

𝑦6 = 3.17900

Interacción #7
t=1.2; y=3.17900

𝑘1 = 2.739

𝑘2 = 2.7629

𝑘3 = 2.76529

𝑘4 = 2.772058

𝑦7 = 3.73125

Interacción #8
t=1.4; y=3.73125

𝑘1 = 2.77125

𝑘2 = 2.758375

𝑘3 = 2.7570875

𝑘4 = 2.72266675

𝑦8 = 4.28208
Universidad Tecnológica de Panamá
Facultad de Mecánica
Ingeniería Aeronáutica
Métodos Numéricos: 7895
Prof. Fernando Castillo

Interacción #9
t=1.6; y=4.28208

𝑘1 = 2.72208

𝑘2 = 2.664288

𝑘3 = 2.6585088

𝑘4 = 2.5934975

𝑦9 = 4.81412

Interacción #10
t=1.8; y=4.81412

𝑘1 = 2.57412

𝑘2 = 2.461532

𝑘3 = 2.4502732

𝑘4 = 2.30417464

𝑦10 = 5.30418

Interacción #11
t=2.0; y=5.30418

𝑘1 = 2.30418

𝑘2 = 2.124598

𝑘3 = 2.1066398

𝑘4 = 1.88550796

𝑦11 = 5.72592
Universidad Tecnológica de Panamá
Facultad de Mecánica
Ingeniería Aeronáutica
Métodos Numéricos: 7895
Prof. Fernando Castillo

Código en scilab

Función en la consola

Grafica en scilab

You might also like