HOME
PDF

Using zero based arrays and lists in Mathematica

Nasser M. Abbasi

Oct 24, 2010 page compiled on July 4, 2015 at 1:47am

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

One way to do this in Mathematica is to define a notation where the index mapping is made. The example below illustrates this method.

1.
HTML
2.
PDF
3.
Mathematica notebook