list = {{1,0,x-y},{1,0,0},{0,2x,x-y}, {x-y,x,1}, {0,2x,1}, {-1,-y+x,0}, {1,y,0}, {y-x,2y,0}, {0,x+y,-x}, {1,y-2x,0},{-1,2(x+y),-1},{0,3x,0},{3x,2y,0},{0,-x-y,-1},{-x+3y,0,0},{2x-3y,0,1}, {3x,-x,1}}
From the list I would like to drop all the tuples which contain any ax+by
where $a\geq0$, $b\geq0$, and $a$ and $b$ are not both zero at the same time.
For example, we can drop {x-y,x,1},{y-x,2y,0},{0,x+y,-x}
, because these contain respectively x
, 2y
, x+y
. But we cannot drop {1,0,x-y},{-1,-y+x,0},{2x-3y,0,1},{0,-x-y,-1},{-x+3y,0,0}}
, because these do not contain any ax+by
in the stated form.
After dropping, the list should have elements:
reducedlist={{1,0,x-y},{1,0,0},{-1,-y+x, 0},{1,y-2x,0},{0,-x-y,-1},{-x+3y,0,0},{2x-3y,0,1}}
{x-y,x,1}
but NOT{1,0,x-y}
, yet both elements contain the samex-y
for whicha=1
andb=-1
in your notation. Have I misunderstood something? Could you elaborate a bit? $\endgroup$