expression formatting inside tables
- To: mathgroup at smc.vnet.net
- Subject: [mg54591] expression formatting inside tables
- From: "Trevor Baca" <trevorbaca at gmail.com>
- Date: Wed, 23 Feb 2005 03:12:53 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
hi mathgroup folks,
let
foo[x_] := x^2
then how to easily tableize the following?
foo[1] 1
foo[2] 4
foo[3] 9
foo[4] 16
foo[5] 25
because neither
Table[{HoldForm[foo[i]], foo[i]}, {i, 5}] // TableForm
nor
Table[{foo[HoldForm[i]], foo[i]}, {i, 5}] // TableForm
did what i was expecting.
trevor
- Follow-Ups:
- Re: expression formatting inside tables
- From: yehuda ben-shimol <bsyehuda@gmail.com>
- Re: expression formatting inside tables
- From: János <janos.lobb@yale.edu>
- Re: expression formatting inside tables
- From: Igor Antonio <igora@wolf-ram.com>
- Re: expression formatting inside tables
- From: DrBob <drbob@bigfoot.com>
- Re: expression formatting inside tables