eqdisco.dynamics.simulate_ode#

eqdisco.dynamics.simulate_ode(rhs, z0, t, u=None, method='LSODA', rtol=1e-08, atol=1e-10)[source]#

Integrate \(\dot{\mathbf z}=\mathbf g(\mathbf z[, u])\) with scipy.integrate.solve_ivp().

rhs(z, u) -> dz (u is None without input; with an input sequence sampled at t it is interpolated linearly). Returns an array (len(t), d); rows after a failure are NaN.