Given a list of equations (or inequalities) I wish to find all the variables in said list. Example:
{x >= 0, y >= 0, z >= 0, 2 x >= y, 2 z >= y, 2 x + y <= 4, 2 z + y <= 4};
-or-
{x1 >= 0, x2 >= 0, x3 >= 0, 2 x1 >= x2, 2 x3 >= x2, 2 x1 + x2 <= 4, 2 x3 + x2 <= 4}
This will generate:
{x,y,z}
-or
{x1,x2,x3}
Respectively. Ive tried to use Variables, however, Variables is only for expressions. Is this even possible?