UP

Using zero based arrays and lists in Mathematica

by Nasser M. Abbasi

Oct 24, 2010

 

The problem

Sometime there is a need to start the index of an array or a list from zero, as this can be more natural, depending on the problem.

 

To do this in Mathematica, all what is needed is to define a notation where the index mapping can occur. An example is shown below to explain how this was done

 

HTML

PDF

Mathematica notebook