odeint

Scipy integrate: is solve_ivp "always worse" than odeint?

Scipy integrate: is solve_ivp "always worse" than odeint? Question: Analytical solution for an example ODE I was testing the difference between these methods by solving the following initial value problem: y’=2*y-t You can solve this analytically by considering that y(t) is a linear combination of a homogeneous solution y_h(t)=c1*exp(2t) and a particular solution y_p(t)=t/2+1/4. The …

Total answers: 1

passing dictionaries of parameters and initial values to scipy.integrate.odeint

passing dictionaries of parameters and initial values to scipy.integrate.odeint Question: I’m trying to integrate a system of differential equations using spicy.itegrate.odeint. First, parameters and initial conditions are sampled and returned in two dictionaries (x0 and p). Then the model is created and written as a function to a file, looking roughly as follows (with dummy …

Total answers: 1