Click here to Skip to main content
15,886,756 members
Articles / Programming Languages / C++

Solving ordinary differential equations in C++

Rate me:
Please Sign up or sign in to vote.
4.82/5 (36 votes)
19 Oct 2011CPOL8 min read 311.3K   3.8K   97  
This article explains a framework for solving ordinary differential equations, which is based on template metaprogramming.
/* Boost odeint.hpp header file
 
 Copyright 2009 Karsten Ahnert
 Copyright 2009 Mario Mulansky
 Copyright 2009 Andre Bergner
 
 This file includes *all* headers needed for integration of ordinary differential equations.
 
 
 Distributed under the Boost Software License, Version 1.0.
 (See accompanying file LICENSE_1_0.txt or
 copy at http://www.boost.org/LICENSE_1_0.txt)
*/

#ifndef BOOST_NUMERIC_ODEINT_HPP
#define BOOST_NUMERIC_ODEINT_HPP

#include <boost/config.hpp>

#include <boost/numeric/odeint/container_traits.hpp>

#include <boost/numeric/odeint/stepper_euler.hpp>
#include <boost/numeric/odeint/stepper_half_step.hpp>
#include <boost/numeric/odeint/stepper_rk4.hpp>
#include <boost/numeric/odeint/stepper_rk4_classical.hpp>
#include <boost/numeric/odeint/stepper_rk5_ck.hpp>
//#include <boost/numeric/odeint/stepper_rk_generic.hpp>
#include <boost/numeric/odeint/stepper_midpoint.hpp>
#include <boost/numeric/odeint/stepper_rk78_fehlberg.hpp>

#include <boost/numeric/odeint/hamiltonian_stepper_euler.hpp>
#include <boost/numeric/odeint/hamiltonian_stepper_rk.hpp>


#include <boost/numeric/odeint/controlled_stepper_standard.hpp>
#include <boost/numeric/odeint/controlled_stepper_bs.hpp>

#include <boost/numeric/odeint/error_checker_standard.hpp>

#include <boost/numeric/odeint/integrator_adaptive_stepsize.hpp>
#include <boost/numeric/odeint/integrator_constant_stepsize.hpp>

#include <boost/numeric/odeint/gram_schmitt.hpp>

#endif // BOOST_NUMERIC_ODEINT_HPP

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions