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 a given head and a range of indices. A symbol is a record with head (as IndetName ) and indices (as 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