Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2001

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

Search the Archive

Re: TableForm Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28937] Re: [mg28925] TableForm Question
  • From: BobHanlon at aol.com
  • Date: Sat, 19 May 2001 22:27:54 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

data = {{a, a, a}, {b, b}};

TableForm[PadRight[#, Max[Dimensions /@ data], ""] & /@ data, 
  TableDirections -> Row ] 


Bob Hanlon

In a message dated 2001/5/18 1:43:27 AM, qualsystems*nospam* at mindspring.com 
writes:

>A search of Deja News turned up the very problem I need help on, but I
>couldn't find any response to it.
>
>The original posting is copied below.
>
>" Hi MathGroup !! 
>
>I believe there is a Bug in the TableForm/MatrixForm when using the
>option TableDirections. In the Mathematica Book section 2.8.8. we have
>the example 
>TableForm[ { {a, a, a}, {b, b} } ] 
>which is essentially the same as 
>TableForm[ {{a, a, a}, {b, b} }, TableDirections -> Column ] 
>The result is 
>
>a a a
>b b 
>
>which is fine. But when I write 
>TableForm[ {{a, a, a}, {b, b} }, TableDirections -> Row ]
> I don't get the output I expected 
>
>a b
>a b
>a 
>
>Instead I get the same output as before with the following error
>massage Thread::"tdlen": "Objects of unequal length in
>OutputFormsDump`HoldList[OutputFormsDump`HoldList [a, a, a], <<1>>]
>cannot be combined." Any comments ?!?
>


  • Prev by Date: Re: Re: Recursion on a list
  • Next by Date: Re: Limit[(p*(-1 + p^n))/(-1 + p), n->Infinity]
  • Previous by thread: TableForm Question
  • Next by thread: Re: TableForm Question