# lists and inequalities

First question: Is Geogebra supposed to support lists of inequalities (e.g. {x+2y<=5, x>=0, y-2x>=1})? Or is it something that Geogebra just doesn't complain about but we shouldn't expect reliable results?

If such lists are supported then I might have been stumbled upon a bug:

I was using such lists of inequalities, and it seemed worked fine, but now I am noticing that I sometimes get wrong results with swapped variables x and y.

I can't always reproduce it. So far I only got those problems when using the Iteration to construct a conjunction of inequalities from such a list:

L_0 = {x + 2y ≤ 5, 2x + y ≤ 6, x - 2y ≥ 0, y ≥ 0} Element(Iteration(Flatten({Element(L, 1) ∧ Element(L, 2), If(Length(L) < 3, {}, Take(L, 3))}), L, {L_0}, Length(L_0) - 1), 1)

And I think (not quite sure though) the problem only ever started to happen when there was an inequality containing only one variable (e.g. "y>=0"), in which case this inequality and/or some of the following in the list produced swapped "x" and "y" in the constructed conjunction. Once that problem had occurred, only changing the list (e.g. replacing "y>=0 by "0x+y>=0" would sometimes rectify the problem, but not always. Often, such problems would keep occurring even when those one-variable inequalites were replaced or removed.

That sounds like the solution - you need to make sure lists contain only the same "type" of object

if I have in:y>=0 and I do x>=-infinite&&in then do I get the type equal to x+y>=0 ?

Loading...Comments have been locked on this page!