MathGroup Archive 2006

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

Search the Archive

returning a variable's name, rather than the variable's contents

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68422] returning a variable's name, rather than the variable's contents
  • From: "Michael Stern" <stern at merrinmanagement.com>
  • Date: Fri, 4 Aug 2006 03:59:50 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

There must be a simple way to do this but it eludes me. Take for example the
following:

 

In[2]:= a=1;b=2;c=3;

 

In[3]:= Max[a,b,c]

 

Out[3]= 3

 

What would I do if I wanted Out[3] to equal "c" ?

 

Thanks in advance,

 

Michael Stern




  • Prev by Date: Re: "No more memory available" -- a recurring problem
  • Next by Date: Re: Finding the Number of Pythagorean Triples below a bound
  • Previous by thread: Re: Trouble with Module in a package
  • Next by thread: Re: returning a variable's name, rather than the variable's contents