To solve simple ODEs using SciPy, I used the odeint function with the form:
scipy.integrate.odeint(func, y0, t, args=(), Dfun=None, col_deriv=0, full_output=0, ml=None, mu=None, rtol=None, atol=None, tcrit=None, h0=0.0, hmax=0.0, hmin=0.0, ixpr=0, mxstep=0, mxhnil=0, mxordn=12, mxords=5, printmessg=0)[source]
where a simple integrable function may include additional arguments in the form:
def dy_dt(t, y, arg1, arg2):
In SciPy 1.0, it seems that the ode and odeint functions have been replaced by the newer solve_ivp method.
scipy.integrate.solve_ivp(fun, t_span, y0, method='RK45', t_eval=None, dense_output=False, events=None, vectorized=False, **options)
However, it seems that there is neither the args parameter, nor any guidance in the documentation on the implementation of passing arguments.
So I'm wondering if passing arguments using the new API is possible, or is this function not yet added? (It would seem to me an oversight if these functions were intentionally removed?)
Link: https://docs.scipy.org/doc/scipy/reference/integrate.html