Function: niceindices (<expr>) Renames the indices of sums and products in <expr>.
niceindices attempts to rename each index to the value of
niceindicespref, 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
niceindices returns an expression.
niceindices evaluates its argument.
(%i1) niceindicespref; (%o1) [i, j, k, l, m, n] (%i2) product (sum (f (foo + i*j*bar), foo, 1, inf), bar, 1, inf); inf inf /===\ ==== ! ! \ (%o2) ! ! > f(bar i j + foo) ! ! / bar = 1 ==== foo = 1 (%i3) niceindices (%); inf inf /===\ ==== ! ! \ (%o3) ! ! > f(i j l + k) ! ! / l = 1 ==== k = 1
There are also some inexact matches for
?? niceindices to see them.
(%o1) true (%i2)