philsupertramp/game-math
Loading...
Searching...
No Matches
Functions
ExplicitEuler.h File Reference
#include "../utils.h"
#include "ode.h"
#include <functional>
#include <vector>

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)
 

Detailed Description

Implements explicit Euler-Method to solve ordinary differential equations.

Requires:

Function Documentation

◆ ODEExpEuler()

ODEResult ODEExpEuler ( const ODE fun,
const std::vector< double > &  tInterval,
const Matrix< double > &  y0,
double  h = 0.0 
)

implementation of explicit euler method

Parameters
funode to approximate
tIntervalinterval to perform approximation on
y0start value
hstepwith, $$h = t_{i+1} - t_i$$
Returns
Examples
numerics/ode/TestExplicitEuler.cpp.