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

Go to the source code of this file.

Functions

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

Function Documentation

◆ ODETrapez()

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

Implements trapezoid method to solve odes

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