Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

GridBox coming back unevaluated

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65550] GridBox coming back unevaluated
  • From: "J Siehler" <jsiehler at gmail.com>
  • Date: Fri, 7 Apr 2006 06:14:26 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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