python sympy solve matrix equation code example Example: sympy solve equation system sol = solve((eq1, eq2),(x, y)) sol