After the symbols and equations are defined we can use SymPys solve function to compute the value of x and y. 2x2yz 1 2 x 2 y z 1 x2yz c1 x 2 y z c 1 2xy z 2 x y z import sympy as sym. See this link for the same tutorial in GEKKO versus ODEINT.
Numpy linalg solve function is used to solve a linear matrix equation or a system of linear scalar equation.
Where ab and c are real numbers and a is not equal to zero. The second argument passed to the solve function is a tuple of the variables we want to solve for x y. You can either use linalginv and linalgdot methods in chain to solve a system of linear equations or you can simply use the solve method. Numpy Scipy or Sympy eg.