MathGroup Archive 2006

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

Search the Archive

GridBox coming back unevaluated


Hello, group,

I'm perplexed by the results of the following

GridBox[Table[3i + j, {i, 0, 2}, {j, 1, 3}], RowLines -> True,
ColumnLines -> True] //DisplayForm

GridBox[Partition[Range[9], 3], RowLines -> True, ColumnLines ->True]
// DisplayForm

The first returns a nicely formatted box; the second does not.  Tracing
the execution of the two shows that they both arrive, of course, at

GridBox[{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}, RowLines -> True,
ColumnLines -> True]

but only the first proceeds from that point to returning
two-dimensional output.

Here is a minor variation:

m = {{1, 2}, {3, 4}}
ma = Append[m, {5, 6}]
mb = Append[m, Range[5, 6]]
ma === mb

GridBox[ma] // DisplayForm
GridBox[mb] // DisplayForm

The penultimate line returns a 2D box; the last line does not.  Anyone
care to enlighten me?


  • Prev by Date: Re: Re: Count Function
  • Next by Date: FindMinimum during NMimimize
  • Previous by thread: Re: Problem with the Hannan Rissanen procedure
  • Next by thread: Re: GridBox coming back unevaluated