[code] "Please use code tags"
[/code]
Integer division returns an integer
Also, don't know if you noticed this but for some reason in that picture, the negative y-axis is pointing up (don't know if that was a trick or not).
That would make it so this line:
y = x + 1
is actually this line y = -x - 1
and this line:
y = (1/3)x + 1
is actually this line y = -(1/3)x - 1
and of course the circle would be:
(x + 1)2 + (y + 1)2 = 1
and you would have to reverse the >=
and the <=
for the two lines (no need to check with respect to the line
y = 0
)
Last edited on