Template Class RK23Integrator
Defined in File rk23.hpp
Inheritance Relationships
Base Type
public diffeq::core::AdaptiveIntegrator< S >
(Template Class AdaptiveIntegrator)
Class Documentation
-
template<system_state S>
class RK23Integrator : public diffeq::core::AdaptiveIntegrator<S> RK23 (Bogacki-Shampine) adaptive integrator.
Second-order method with third-order error estimation. Good for problems that don’t require high accuracy. Lower computational cost than RK45.
Order: 2(3) - 2nd order method with 3rd order error estimation Stages: 4 Adaptive: Yes
Public Types
-
using base_type = core::AdaptiveIntegrator<S>
Public Functions
-
inline explicit RK23Integrator(system_function sys, time_type rtol = static_cast<time_type>(1e-6), time_type atol = static_cast<time_type>(1e-9))
-
inline void step(state_type &state, time_type dt) override
-
inline time_type adaptive_step(state_type &state, time_type dt) override
-
using base_type = core::AdaptiveIntegrator<S>