Pass args for solve_ivp (new SciPy ODE API)

后端 未结 6 1530
野性不改
野性不改 2020-12-15 20:08

For solving simple ODEs using SciPy, I used to use the odeint function, with form:

scipy.integrate.odeint(func, y0, t, args=(), Dfun=None, col_deriv=0, full_         


        
6条回答
  •  有刺的猬
    2020-12-15 20:47

    Recently the 'args' option was added to solve_ivp, see here: https://github.com/scipy/scipy/issues/8352#issuecomment-535689344

提交回复
热议问题