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

*To*: mathgroup at smc.vnet.net*Subject*: [mg69816] RE: [mg69779] Table command strange output when 'i' over 16*From*: "David Park" <djmp at earthlink.net>*Date*: Sat, 23 Sep 2006 23:45:15 -0400 (EDT)

Nasser, 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 earthlink.net http://home.earthlink.net/~djmp/ From: Nasser Abbasi [mailto:nma at 12000.org] To: mathgroup at smc.vnet.net hello; Mathematica 5.2, on XP. When I type the command Table[0,{i,1,2},{i,1,2}] Table[0,{i,1,3},{i,1,3}] Table[0,{i,1,4},{i,1,4}] etc... all the way to Table[0,{i,1,15},{i,1,15}] I always get a 2D square Matrix filled with zeros as I expected. But when I type Table[0,{i,1,16},{i,1,16}] 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 problem. Notice that when I change the second index counter from 'i' to 'j' it works: Table[0,{i,1,16},{j,1,16}] it works ok, and I get a matrix filled with zero. any thoughts? Here is a screen shot: http://12000.org/tmp/092106/table_bug.htm Nasser