def funk(m,t):
retu [m[0], -m[0]+m[1]*np.sin(t)]
zac_pogoji = [15, 10, 13]
h = 0.1
solver = ode(funk).set_initial_value(zac_pogoji)
zac = [zac_pogoji]
sprem = [0]
while solver.t < 5:
solver.integrate(solver.t + h)
zac.append(solver.y)
sprem.append(solver.t)
TypeError: 'float' object is not subscriptable
I'm trying to numericly solve differential equation: z(y)*sin(y) = z'''(y)+z'(y) and somehow i just can't get to solve it. Should i use some other way of solving 3rd order diff.eq?
