The first variable in a polynomial ring has index 0, the second has index 1, etc. This function returns a list (in ascending order) of the indices of all of the variables which occur in
f.
i1 : R = QQ[a..g]
o1 = R
o1 : PolynomialRing
|
i2 : f = a^3+b^2*c+3*f^10*d-1+e-e
10 3 2
o2 = 3d*f + a + b c - 1
o2 : R
|
i3 : indices f
o3 = {0, 1, 2, 3, 5}
o3 : List
|
i4 : index a
o4 = 0
|
i5 : support f
o5 = {a, b, c, d, f}
o5 : List
|
This use of
indices has no relationship with the use for specifying parts of a direct sum