philsupertramp/game-math
|
Go to the source code of this file.
Functions | |
ODEResult | ODE45 (const ODE &fun, const std::vector< double > &tInterval, const Matrix< double > &y0, double h=0.0) |
ODE Solver implementation based on Dormand-Prince Method to solve ordinary differential equations https://en.wikipedia.org/wiki/Dormand%E2%80%93Prince_method
Current state:
TODO: use calculated error of 5th order - 4th order to alter step width h
dynamically to fully implement dp-method.
Requires:
ODEResult ODE45 | ( | const ODE & | fun, |
const std::vector< double > & | tInterval, | ||
const Matrix< double > & | y0, | ||
double | h = 0.0 |
||
) |
Implementation of 5th order Runge-Kutta-Method
fun | ode to approximate |
tInterval | interval to perform approximation on |
y0 | start value |
h | step width for time values |