Skip to content

Runge–Kutta method RK4 for second order differential equations

License

Notifications You must be signed in to change notification settings

marcocado/runge-kutta-4-sode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 

Repository files navigation

Runge–Kutta method RK4 for second order differential equations

Differential equations of the type: y'' = f(x, y, y')

Due to the implementation with pointers to arrays, all of the variables are stored in arrays.

Console Output:

----------------------------
x:      0.000
y:      0.000
yd:     4.000
ydd:    -8.000
----------------------------

----------------------------
x:      0.050
y:      0.191
yd:     3.636
ydd:    -8.000
----------------------------

----------------------------
x:      0.100
y:      0.365
yd:     3.337
ydd:    -6.600
----------------------------

----------------------------
x:      0.150
y:      0.525
yd:     3.095
ydd:    -5.380
----------------------------

The code is ready to run.

References:
[1] Papula, Lothar. (2015, p. 485f). Mathematik für Ingenieure und Naturwissenschaftler - Band 2. 14th edition.

Releases

No releases published

Packages

No packages published

Languages