I'm writing a program that has 2 equations and when the first equation x
, becomes equal to 0, I want to graph the original points (which i have set as p
and q
) picked. My code looks like this:
m = Matrix(200,200)
n = 0
for x in range (0,200):
for y in range (0,200):
p=x
q=y
c=0
while (x > 0 and y > 0):
i=x-y+100
y=x+y-100
c=c+1
x=i
if c > 1000:
break
if x < 0:
plot(m(p,q), color='blue')
The only thing this does is show multiple graphs with a straight line at y=200
and y=-299
(or something like that) and I don't know why or how to fix it
I would post an image of the graph but I need higher reputation