So I am using scipy.integrate's solve_ivp to solve a system of 4 first order coupled differential equations. Here is the piece of code:
def bigF (a, b):
return [f1(a, b), f2(a, b), f3(a, b), f4(a, b)]
X, Y = solve_ivp(bigF, (0.1, 15),[0.999, 0.003, -0.033, 0.067])
bigF is a collection of four functions, arguments being a('x') and b('y-array'), it is like y_0 ' = f1, y_1 ' = f2 and so on. The second argument is a tuple of initial and final x, and the final argument is the initial values of the four y's.
I get the following error[full message]:
Traceback (most recent call last): File "F:/Semester 6/Dissertation/Coding Part/inbuilt.py", line 11, in X, Y = solve_ivp(bigF, (0.1, 15), [0.999, 0.003, -0.033, 0.067]) ValueError: too many values to unpack (expected 2)
I have no idea what this means, google does not help much.