/**/ use R ::= QQ[t,x,y,z];
/**/ L := [34*x+y^2, "a string", [], [true, false]]; -- a list
/**/ L[1]; -- the 1st component
y^2 +34*x
/**/ L[2];
a string
/**/ L[3];
[ ]
/**/ L[4]; -- The 4th component is a list, itself;
[true, false]
/**/ L[4][1]; -- its 1st component;
true
/**/ L[4,1]; -- the same.
true
/**/ [1,"a"]+[2,"b"]; -- NOTE: one may add lists if their components
[3, "ab"] -- are compatible (see "Algebraic Operators").
/**/ L := [x^2-y, t*y^2-z^3];
/**/ I := ideal(L);
/**/ I;
ideal(x^2 -y, t*y^2 -z^3)
|