Template Class ImprovedEulerIntegrator

Inheritance Relationships

Base Type

Class Documentation

template<system_state S>
class ImprovedEulerIntegrator : public diffeq::core::AbstractIntegrator<S>

Improved Euler (Heun’s method) integrator.

Second-order explicit method. Better than basic Euler.

Order: 2 Stability: Better than Euler, but still poor for stiff problems Usage: Simple problems where RK4 is overkill

Public Types

using base_type = core::AbstractIntegrator<S>
using state_type = typename base_type::state_type
using time_type = typename base_type::time_type
using value_type = typename base_type::value_type
using system_function = typename base_type::system_function

Public Functions

inline explicit ImprovedEulerIntegrator(system_function sys)
inline virtual void step(state_type &state, time_type dt) override