boost::numeric::odeint::integrate_adaptive — Integrates the ODE with adaptive step size.
// In header: <boost/numeric/odeint/integrate/integrate_adaptive.hpp> template<typename Stepper, typename System, typename State, typename Time, typename Observer> size_t integrate_adaptive(Stepper stepper, System system, State & start_state, Time start_time, Time end_time, Time dt, Observer observer);
This function integrates the ODE given by system with the given stepper. The observer is called after each step. If the stepper has no error control, the step size remains constant and the observer is called at equidistant time points t0+n*dt. If the stepper is a ControlledStepper, the step size is adjusted and the observer is called in non-equidistant intervals.
Parameters: |
|
||||||||||||||
Returns: |
The number of steps performed. |