Services & Resources / Wolfram Forums / MathGroup Archive
-----

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: [mg114680] Re: vector/matrix indexed from zero
  • From: "Nasser M. Abbasi" <nma at 12000.org>
  • Date: Mon, 13 Dec 2010 03:50:05 -0500 (EST)
  • References: <ie297c$mrj$1@smc.vnet.net>
  • Reply-to: nma at 12000.org

On 12/12/2010 2:47 AM, 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.
>

a note on this subject is here:

"Using zero based arrays and lists in Mathematica"

http://12000.org/my_notes/using_zero_index_in_Mathematica/index.htm

--Nasser


  • Prev by Date: Idiomatic use of Reduce in a physics problem
  • Next by Date: wavelet
  • Previous by thread: Re: vector/matrix indexed from zero
  • Next by thread: Re: vector/matrix indexed from zero