MathGroup Archive 2007

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

Search the Archive

Re: Help with formatting output


Hello, Diana,

On Mathematica try

TableForm[{Range[1, Length[list]], list}, TableDirections -> Row]

Or, to vary spacing,

TableForm[{Range[1, Length[list]], list}, TableDirections -> Row,
 TableSpacing -> {2, 2}]

Tom Dowling

On 6/14/07, Diana <diana.mecum at gmail.com> wrote:
>
> Mathematica junkies,
>
> I would like to format:
>
> {35,36,2,4,5} as
>
> 1 35
> 2 36
> 2 2
> 3 4
> 5 5
>
> I have a list, such as {35,36,2,4,5}, and want two-column output,
> where the first column is the position n the list, and the second
> column is the actual list. I want just a space between the columns.
>
> I have Mathematica, TextPad, and Dreamweaver at my disposal. Can
> someone give me a hint as to an easy way to do this? Thanks, Diana M.
>
>
>



  • Prev by Date: Re: Trouble with TraditionalForm in Mathematica 6.0
  • Next by Date: Re: Help with formatting output
  • Previous by thread: RE: Help with formatting output
  • Next by thread: Re: Re: Help with formatting output