Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6321 > unrolled thread

Keeping track of variables used in Mathematica

Started byMark <big.dog1@att.net>
First post2011-11-10 11:56 +0000
Last post2011-11-12 12:38 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Keeping track of variables used in Mathematica Mark <big.dog1@att.net> - 2011-11-10 11:56 +0000
    Re: Keeping track of variables used in Mathematica Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-11-11 10:09 +0000
    Re: Keeping track of variables used in Mathematica David Bailey <dave@removedbailey.co.uk> - 2011-11-12 12:38 +0000

#6321 — Keeping track of variables used in Mathematica

FromMark <big.dog1@att.net>
Date2011-11-10 11:56 +0000
SubjectKeeping track of variables used in Mathematica
Message-ID<j9ge4n$opm$1@smc.vnet.net>
Hello community:

Does Mathematica have a command that will output or compute a list of custom variables assigned and used in a current notebook / Mathematica session?

If so, what is the command / expression?
Thanks in advance
Mark

[toc] | [next] | [standalone]


#6384

FromArmand Tamzarian <mike.honeychurch@gmail.com>
Date2011-11-11 10:09 +0000
Message-ID<j9is89$8ij$1@smc.vnet.net>
In reply to#6321
On Nov 10, 10:56 pm, Mark <big.d...@att.net> wrote:
> Hello community:
>
> Does Mathematica have a command that will output or compute a list of cus=
tom variables assigned and used in a current notebook / Mathematica session=
?
>
> If so, what is the command / expression?
> Thanks in advance
> Mark

This

Names["Global`*"]

will give you a list of all global variables defined in your session.
If you have created variables in a different context you would have to
sub that context in the expression. The fact that a variable has been
defined doesn't mean that it is being used though. If getting a list
of variables *used* within your notebook is really what you want then
you could take the global list and scan your notebook using e.g. Cases
but I'll leave that for now.

Mike

[toc] | [prev] | [next] | [standalone]


#6402

FromDavid Bailey <dave@removedbailey.co.uk>
Date2011-11-12 12:38 +0000
Message-ID<j9lpbr$lgg$1@smc.vnet.net>
In reply to#6321
On 10/11/2011 11:56, Mark wrote:
> Hello community:
>
> Does Mathematica have a command that will output or compute a list of custom variables assigned and used in a current notebook / Mathematica session?
>
> If so, what is the command / expression?
> Thanks in advance
> Mark
>

I suggest you look up the help on $NewSymbol.

David Bailey
http://www.dbaileyconsultancy.co.uk

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web