MathGroup Archive 2006

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

Search the Archive

RE: Table command strange output when 'i' over 16


Basically I don't think it is a correct construction. The different
iterators should have different iterator variables. So digging into why it
doesn't work is probably a wasted effort.

In your case you don't need an iterator variable. You could use...

Table[0, {16}, {16}] // MatrixForm

However, if you evaluate the following statement repeated you will obtain
different results and sometimes the correct one.

Table[0, {i, 1, 16}, {i, 1, 16}] // MatrixForm

But I just don't see a reason to use that construction.

Sometimes you might want to use a construction with an iterator variable in
one iterator and no variable in the second variable.

Table[i, {i, 1, 16}, {16}] // MatrixForm

Table[i, {16}, {i, 1, 16}] // MatrixForm

David Park
djmp at

From: Nasser Abbasi [mailto:nma at]
To: mathgroup at


Mathematica 5.2, on XP.

When I type the command


etc... all the way to


I always get a 2D square  Matrix filled with zeros as I expected.

But when I type


Now the matrix returned no longer filled with zero.
Any idea why this is? and any other value of over 16 will also have this

Notice that when I change the second index counter from 'i' to 'j' it works:

it works ok, and I get a matrix filled with zero.

any thoughts?

Here is a screen shot:


  • Prev by Date: Re: Re: Extracting terms from an equation
  • Next by Date: Re: Table command strange output when 'i' over 16
  • Previous by thread: Re: Table command strange output when 'i' over 16
  • Next by thread: Re: Table command strange output when 'i' over 16