Re: vector/matrix indexed from zero
- To: mathgroup at smc.vnet.net
- Subject: [mg114700] Re: vector/matrix indexed from zero
- From: Oliver Ruebenkoenig <ruebenko at wolfram.com>
- Date: Mon, 13 Dec 2010 03:53:47 -0500 (EST)
- References: <201012121047.FAA23423@smc.vnet.net>
On Sun, 12 Dec 2010, Vasyl' wrote: > How to create vector in Mathematica index of which will start from > zero. > > Now for x = {0, 1}, x[[1]] gives 0 and x[[2]] gives 1. > > I want x[[0]] = 0, x[[1]] = 1. > > the index 0 gives you the Head of the expr f[1, 2, 3][[0]] f Oliver
- References:
- vector/matrix indexed from zero
- From: "Vasyl'" <vvavrychuk@gmail.com>
- vector/matrix indexed from zero