Re: print variable name and its value
- To: mathgroup at smc.vnet.net
- Subject: [mg100001] Re: print variable name and its value
- From: "Marc B. Reynolds" <marc.reynolds at orange.fr>
- Date: Thu, 21 May 2009 00:16:00 -0400 (EDT)
Opps...this will display better for arbitrary expressions: DumpVar[x_] := Print[HoldForm[x], ":", x]; SetAttributes[DumpVar, {Listable, HoldAll, Flat}] x=4; y=5; DumpVar[{x^2+3,x^y}]