tfel
Loading...
Searching...
No Matches
runge_kutta2-header.hxx File Reference
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <string>
#include <algorithm>
#include "TFEL/Math/tvector.hxx"
#include "TFEL/Math/RungeKutta2.hxx"

Classes

struct  Name< long double >
struct  Name< double >
struct  Name< float >
class  VanDerPol< T >

Functions

template<typename T>
void test ()
template<typename T>
T computeHarmonicOscillatorError ()

Detailed Description

Author
Thomas Helfer
Date
05/02/2008

Function Documentation

◆ computeHarmonicOscillatorError()

template<typename T>
T computeHarmonicOscillatorError ( )
Returns
the largest difference between the solution of the harmonic oscillator (Van der Pol equation without damping) computed on [0, 10] with a time step of 1.e-2 and the exact solution (cos(t), -sin(t))