up previous next
AllIndetsCalled

List of indeterminates of current ring with a given name
Syntax
          
AllIndetsCalled(S:STRING):LIST of POLY

          

Description
This function returns the list of all indeterminates whose name is the given string. Up to version 4.7.3 you could call this just by giving the name Use Q[x[0..4]]; x;, but this is ambiguous since x[2]; is different from L := x; L[2];. That's why this syntax is no longer allowed.

Example
  Use QQ[x[1..4], y[5..7]];
  AllIndetsCalled("x");
[x[1], x[2], x[3], x[4]]
-------------------------------
  AllIndetsCalled("y");
[y[5], y[6], y[7]]
-------------------------------
  Use QQ[x[1..2,3..5],y];
  AllIndetsCalled("x");
[x[1,3], x[1,4], x[1,5], x[2,3], x[2,4], x[2,5]]
-------------------------------
  AllIndetsCalled("y");
[y]
-------------------------------
  AllIndetsCalled("z");
[ ]
-------------------------------


See Also