Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

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}]


  • Prev by Date: Re: Basic question about Mathematica Interface
  • Next by Date: Import of NIST ANOVA data sets
  • Previous by thread: Re: print variable name and its value
  • Next by thread: Re: print variable name and its value