Your first line should be @pyimport scipy.integrate as integrate.
On Mon, Jun 20, 2016 at 5:32 PM, Henri Girard
wrote:
> I am trying to convert from python to julia, but I don't know how to use
> y1=integrate.odeint(f,t), apparently I should have add a derivativ ?
>
>
I am trying to convert from python to julia, but I don't know how to use
y1=integrate.odeint(f,t), apparently I should have add a derivativ ?
--python--
from scipy.integrate import odeint
def f(y,t):
if t<25:
return [y[1],-8*y[0]+0.1*y[1]]
elif 25