HeunEuler

Contents

HeunEuler#

class brainpy.integrators.ode.HeunEuler(f, var_type=None, dt=None, name=None, adaptive=None, tol=None, show_code=False, state_delays=None, neutral_delays=None)[source]#

The Heun–Euler method for ODEs.

The simplest adaptive Runge–Kutta method involves combining Heun’s method, which is order 2, with the Euler method, which is order 1.

It has the characteristics of:

  • method stage = 2

  • method order = 1

  • Butcher Tables:

\[\begin{split}\begin{array}{c|cc} 0&\\ 1& 1 \\ \hline & 1/2& 1/2\\ & 1 & 0 \end{array}\end{split}\]