MathGroup Archive 2007

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

Search the Archive

Symbol name extraction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73705] Symbol name extraction
  • From: "zac" <replicatorzed at gmail.com>
  • Date: Sun, 25 Feb 2007 04:34:12 -0500 (EST)

Dear Group,

I have to write a list of parameters to a file, in string format.
In the first shot, I've tried something like this:


a = "x";
b = 0;
c = {1, 2, 3};

printSymbol[vars__] :=StringJoin[Map[(SymbolName[#] <> " = " <>
FullForm[#] <>";\n") &, {vars}]];

printSymbol[a, b, c]


but it fails to recognize symbol names. Any suggestion?
thanks in advance

Istvan Zachar



  • Prev by Date: deleting a title or subtitle in a notebook
  • Next by Date: Re: reliability function drawing
  • Previous by thread: Re: deleting a title or subtitle in a notebook
  • Next by thread: Re: Symbol name extraction