brainpy.integrators module

General functions

odeint([f, method])

Numerical integration for ODE.

sdeint([f, method])

set_default_odeint(method)

Set the default ODE numerical integrator method for differential equations.

get_default_odeint()

Get the default ODE numerical integrator method.

set_default_sdeint(method)

Set the default SDE numerical integrator method for differential equations.

get_default_sdeint()

Get the default ODE numerical integrator method.

Numerical Methods for ODEs

ode.euler

The Euler method is first order.

ode.midpoint

midpoint method for ordinary differential equations.

ode.heun2

Heun’s method for ordinary differential equations.

ode.ralston2

Ralston’s method for ordinary differential equations.

ode.rk2

Runge–Kutta methods for ordinary differential equations.

ode.rk3

Classical third-order Runge-Kutta method for ordinary differential equations.

ode.heun3

Heun’s third-order method for ordinary differential equations.

ode.ralston3

Ralston’s third-order method for ordinary differential equations.

ode.ssprk3

Third-order Strong Stability Preserving Runge-Kutta (SSPRK3).

ode.rk4

Classical fourth-order Runge-Kutta method for ordinary differential equations.

ode.ralston4

Ralston’s fourth-order method for ordinary differential equations.

ode.rk4_38rule

3/8-rule fourth-order method for ordinary differential equations.

ode.rkf45

The Runge–Kutta–Fehlberg method for ordinary differential equations.

ode.rkf12

The Fehlberg RK1(2) method for ordinary differential equations.

ode.rkdp

The Dormand–Prince method for ordinary differential equations.

ode.ck

The Cash–Karp method for ordinary differential equations.

ode.bs

The Bogacki–Shampine method for ordinary differential equations.

ode.heun_euler

The Heun–Euler method for ordinary differential equations.

ode.exponential_euler

First order, explicit exponential Euler method.

Numerical Methods for SDEs

sde.euler

sde.heun

sde.milstein

sde.exponential_euler

First order, explicit exponential Euler method.

sde.srk1w1_scalar

Order 2.0 weak SRK methods for SDEs with scalar Wiener process.

sde.srk2w1_scalar

Order 1.5 Strong SRK Methods for SDEs witdt Scalar Noise.

sde.KlPl_scalar

Order 1.0 Strong SRK Methods for SDEs with Scalar Noise.