up previous next
SymbolRange    --    range of symbols for the indeterminates of a PolyRing


Syntax
SymbolRange(H: STRING, LO: INT, HI: INT): LIST of RINGELEM
SymbolRange(H: STRING, LO: LIST of INT, HI: LIST of INT): LIST of RINGELEM

Description
This function returns the list of the symbols with head given by the string H and a range of indices. A symbol is represented as a record with head (as produced by IndetName ) and indices (as produced by IndetSubscripts ).

Example
/**/  indent(SymbolRange("x", 3, 5));
[
  record[head := "x", indices := [3]],
  record[head := "x", indices := [4]],
  record[head := "x", indices := [5]]
]
/**/  P := NewPolyRing(QQ, SymbolRange("x", 0,2));
/**/  indets(P);
[x[0], x[1], x[2]]

/**/  indent(SymbolRange("x", [3,1], [5,2]));
[
  record[head := "x", indices := [3, 1]],
  record[head := "x", indices := [3, 2]],
  record[head := "x", indices := [4, 1]],
  record[head := "x", indices := [4, 2]],
  record[head := "x", indices := [5, 1]],
  record[head := "x", indices := [5, 2]]
]

See Also