MathGroup Archive 2010

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

Search the Archive

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&#39; 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