How to pass an array to scipy.integrate.solve_ivp using args?
https://stackoverflow.com/questions/61745988/how-to-pass-an-array-to-scipy-integrate-solve-ivp-using-args
WEBMay 13, 2020 · The scipy version is 1.4.1. The code is: import numpy as np. from scipy.integrate import solve_ivp. def func(t, x, u): dydt = (-x + u) / 5. return dydt. y0 = 0. t_span = [0, 10] . t_eval = np.linspace(0, 10, 1000) u = 1.0. sol = solve_ivp(func, t_span=t, y0=y0, t_eval=t_eval, args=(u, )) Any help would be appreciated!
DA: 36 PA: 67 MOZ Rank: 68