### The Maxima on-line user's manual

Algebra Calculator

#### Niceindices

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:

```          (%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`. Try `?? niceindices` to see them.

```(%o1)                                true
(%i2) ```

### Related Examples

##### niceindices-powerseries

powerseries(2/(z*(z-1...

niceindices(%);

Calculate

niceindices;

Calculate

##### niceindices-powerseries

niceindices(powerseri...

laurent(%e^x, x, 0, 5);

Calculate

##### niceindices-powerseries-sqrt

powerseries(1/sqrt(x^...

niceindices();

Calculate

##### niceindices-powerseries

niceindices(powerseri...

laurent(%e^x, x, 0, 5);

Calculate

##### niceindices-powerseries-remvalue-sin-taylor

/* [wxMaxima batch fi...

/* [wxMaxima: input ...

/* [wxMaxima: input ...

Calculate

##### niceindices-powerseries

powerseries((z+1)/(z-...

niceindices(%);

Calculate

##### niceindices-powerseries-sqrt

powerseries(1/sqrt(x^...

niceindices(%);

Calculate

niceindices;

Calculate

##### niceindices-powerseries-remvalue-sin-taylor

/* [wxMaxima batch fi...

/* [wxMaxima: input ...

/* [wxMaxima: input ...

Calculate