philsupertramp/game-math
|
Go to the source code of this file.
Functions | |
ODEResult | ODEExpEuler (const ODE &fun, const std::vector< double > &tInterval, const Matrix< double > &y0, double h=0.0) |
Implements explicit Euler-Method to solve ordinary differential equations.
Requires:
ODEResult ODEExpEuler | ( | const ODE & | fun, |
const std::vector< double > & | tInterval, | ||
const Matrix< double > & | y0, | ||
double | h = 0.0 |
||
) |
implementation of explicit euler method
fun | ode to approximate |
tInterval | interval to perform approximation on |
y0 | start value |
h | stepwith, $$h = t_{i+1} - t_i$$ |