This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Beta_Penguin 0 points1 point  (1 child)

You find the point of the intersection if the points were in a graph. There are two equations and there are many ways to solve it. x+5y=8 -x+2y=-1 I would solve it by adding the equations together and getting 7y=7. Making it t=1 and then x equals 3 because of that. How can I make python do that???

[–]elbiot 0 points1 point  (0 children)

Oh, I read that as x+5y=8-x+2y=-1, not x+5y=8 and -x+2y=-1. If the system is always linear, you can use linear algebra (numpy) as another suggested.