MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: vector/matrix indexed from zero


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


  • Prev by Date: Extracting outlines of thick lines
  • Next by Date: Wolfram does not support Mathematica 8.0 on SUN OS
  • Previous by thread: vector/matrix indexed from zero
  • Next by thread: Re: vector/matrix indexed from zero