philsupertramp/game-math
Loading...
Searching...
No Matches
Functions
odeBDF2.h File Reference
#include "../lin_alg/newton.h"
#include "../utils.h"
#include "ode.h"
#include "odeTrapez.h"
#include <iostream>

Go to the source code of this file.

Functions

ODEResult ODEBDF2 (const ODE &fun, const std::vector< double > &tInterval, const Matrix< double > &y0, const ODEOption &option)
 

Detailed Description

Implements BDF(2)-Method to solve systems of ordinary differential equations

Requires:

Function Documentation

◆ ODEBDF2()

ODEResult ODEBDF2 ( const ODE fun,
const std::vector< double > &  tInterval,
const Matrix< double > &  y0,
const ODEOption option 
)

BDF(2) solver implementation

Parameters
funode to approximate
tIntervalinterval to perform approximation on
y0start value
optionsolver options
Returns
approximated values