I am a little confused with odeint .
I found one example below to solve y"=ay + by' . So it seems that y[0] is a function, y[1] is the first derivative.
So, the following expression means y[1] =y' and y'[1]= a*y[0]+b*y[1] ?
If it were y[2], a*y[0]+b*y[1] , what would it mean?
I am a bit confused as the expression does not say the left side of the equation.
I also met expressions like [a(y[0], y[1]), b(y[0], y[1])] , but did not have the concept of a differential equation.
Here is one example:
from scipy.integrate import odeint from pylab import *
pappu source share