Find the point of intersection of y=2x−5y=2x-5y=2x−5 and y=−x+7y=-x+7y=−x+7.
import sympy x, y = sympy.symbols('x y') eq1 = sympy.Eq(y, 2*x - 5) eq2 = sympy.Eq(y, -x + 7) solution = sympy.solve((eq1, eq2), (x, y)) print(f"{solution=}")
solution={x: 4, y: 3}
Solution for y=2⋅x−5y = 2 \cdot x - 5y=2⋅x−5, y=−x+7y = -x + 7y=−x+7
Ask your own question to get a step-by-step verified solution instantly.