MathGroup Archive 2009

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

Search the Archive

Re: print variable name and its value


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