up previous next
IndetsCalled

List of indeterminates of current ring with a given name

Syntax
IndetsCalled(S:STRING, R:RING):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 get this list just by giving the name, e.g. Use QQ[x[0..4]]; x; but this syntax is no longer allowed because ambiguous: x[2]; is different from X := x; X[2];

Example
/**/  Use R ::= QQ[x[1..4], y[5..7]];
/**/  IndetsCalled("x",R);
[x[1], x[2], x[3], x[4]]

/**/  IndetsCalled("y",R);
[y[5], y[6], y[7]]

/**/  Use R ::= QQ[x[1..2,3..5],y];
/**/  IndetsCalled("x",R);
[x[1,3], x[1,4], x[1,5], x[2,3], x[2,4], x[2,5]]

/**/  IndetsCalled("y",R);
[y]

/**/  IndetsCalled("z",R);
[ ]

See Also