MathGroup Archive 2010

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

Search the Archive

Re: vector/matrix indexed from zero


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

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