python sympy error solve y= code example
Example 1: sympy solve equation system
sol = solve((eq1, eq2),(x, y))
sol
Example 2: sympy solve equation system as matrix
>>> system = Matrix(( (1, 4, 2), (-2, 1, 14)))
>>> solve_linear_system(system, x, y)
{x: -6, y: 2}