MathGroup Archive 2009

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

Search the Archive

RE: listing user defined, independent variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96796] RE: [mg96752] listing user defined, independent variables
  • From: "Jose Luis Gomez" <jose.luis.gomez at itesm.mx>
  • Date: Wed, 25 Feb 2009 04:03:11 -0500 (EST)
  • References: <200902241043.FAA23474@smc.vnet.net>

Paul

The Mathematica command ValueQ[] might be useful for you. For example if you
start a new Mathematica and define:

a=b+c

After that, if you evaluate ValueQ[a] you obtain True, while the evaluation
of ValueQ[b] gives False.

HTH
Jose
Mexico 



-----Mensaje original-----
De: Paul Ellsmore [mailto:paul.ellsmore at nanion.co.uk] 
Enviado el: Martes, 24 de Febrero de 2009 04:44
Para: mathgroup at smc.vnet.net
Asunto: [mg96752] listing user defined, independent variables

Hi,

 

I have a notebook in which there are over 1300 variables (symbols) defined.
The vast majority of these are dependent variables. I can get a list of them
all with Names["Global`*"], but what I really want is a list of only the
independent variables. Is there any obvious way to do this? Mathematica must
"know" which variables are functions of other symbols, so I was hoping that
there would be an "attribute" of a dependent variable that I could use as a
filter on Names[]. Any thoughts? I am using V5.1.

 

Cheers,

 

Paul

 

Dr. Paul A. Ellsmore

 

Nanion Limited

Oxford Centre for Innovation

Mill Street

Oxford

United Kingdom

OX2 0JX

 

Tel: +44 (0) 1865 811175

Fax: +44 (0) 1865 248594

 




  • Prev by Date: Re: newbie: can't Manipulate ListPlot of recurrence
  • Next by Date: MathLink message handler not set by default
  • Previous by thread: listing user defined, independent variables
  • Next by thread: Re: listing user defined, independent variables