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