glider4 / dualRKODE

Python Classical RK4 ODE Solver for System of Two Ordinary Differential Equations - possibility for extension to other ODE systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dualRKODE

Python Classical RK4 ODE Solver for System of Two Ordinary Differential Equations

Mathematical calculations: https://math.stackexchange.com/questions/721076/

ODEs Used in Program

x'(t) = x(t) - y(t) + 2t - t^2 - t^3
y'(t) = x(t) + y(t) - 4t^2 + t^3

With the initial conditions
x(0) = 1
y(0) = 0
t in [0,1]

ODE solutions

x(t) = e^t * cos(t) + t^2
y(t) = e^t * sin(t) - t^3

Graphic Result

Using currently built-in ODEs and their solutions Dual ODE Result

About

Python Classical RK4 ODE Solver for System of Two Ordinary Differential Equations - possibility for extension to other ODE systems


Languages

Language:Python 100.0%