Maxima Function
niceindices (expr)
Renames the indices of sums and products in expr.
niceindices attempts to rename each index to the value of niceindicespref[1],
unless that name appears in the summand or multiplicand,
in which case niceindices tries
the succeeding elements of niceindicespref in turn, until an unused variable is found.
If the entire list is exhausted,
additional indices are constructed by appending integers to the value of
niceindicespref[1], e.g., i0, i1, i2, ....
niceindices returns an expression.
niceindices evaluates its argument.
Example: