MathGroup Archive 2000

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

Search the Archive

Re: TableForm vs. Slot


In a message dated 10/21/2000 3:37:59 PM, gorni at dimi.uniud.it writes:

>Here is some (to me) surprising output:
>
>TableForm[{#}]   gives    StandardForm
>
>TableForm[{#2}]    gives    {Left, Baseline}
>
>TableForm[{#3}]   gives    DirectedInfinity[1]
>
>Guess what happens with TableForm[{#4}], TableForm[{#5}] ...,
>or with MatrixForm[{{#}}], MatrixForm[{{# + 1}}]
>
>I wonder if there a way to show a list containing Slot
>(*not* inside a Function) in a tabular format.
>

This may be what you want:

TableForm[
  Table[{"#" <> ToString[n], 
      ToExpression["TableForm[{#" <> ToString[n] <> "}]"]}, {n, 5}], 
  TableHeadings -> {None, 
      StyleForm[#, FontWeight -> "Bold"] & /@ {"Slot", "Value(s)"}}]


Bob Hanlon


  • Prev by Date: Re: Contour Plots
  • Next by Date: Re: using FindRoot with a list of starting values
  • Previous by thread: Re: TableForm vs. Slot
  • Next by thread: Text in graphics