dymad.numerics.time_int¶
Functions
|
Perform a single Forward Euler integration step. |
|
Perform a single Runge-Kutta 4th order (RK4) integration step. |
- dymad.numerics.time_int.fe_step(f, t, x, dt, **kwargs)¶
Perform a single Forward Euler integration step.
- Parameters:
f – Function that computes the derivative dx/dt = f(t, x, **kwargs).
t – Current time.
x – Current state vector.
dt – Time step for the integration.
**kwargs – Additional arguments to pass to the function f.
- dymad.numerics.time_int.rk4_step(f, t, x, dt, **kwargs)¶
Perform a single Runge-Kutta 4th order (RK4) integration step.
- Parameters:
f – Function that computes the derivative dx/dt = f(t, x, **kwargs).
t – Current time.
x – Current state vector.
dt – Time step for the integration.
**kwargs – Additional arguments to pass to the function f.