MathGroup Archive 2000

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

Search the Archive

Re: Extracting all the variables from a list of equations?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25507] Re: [mg25482] Extracting all the variables from a list of equations?
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Thu, 5 Oct 2000 23:50:25 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In[1]:=
Cases[v, x_ /; Head[x] == Symbol, {2}] // Union
Out[1]=
{v$233Period, v$234Period, v$235Period, v$236Period}

Tomas Garza
Mexico City


"Ryan VanRiper (--)" <ravanrip at yahoo.com> wrote:

> How would i go about extracting all the variables from a list of
> inequalities?
>
> If i had..   V = {v$233Period > 0,  v$234Period == v$233Period,
> v$236Period <= v$235Period}
>
> I would like to get a list that looks like the following..
>
> X = {v$233Period, v$234Period, v$233Period, v$236Period, 
v$235Period}
>
> Then find all the unique elements to give an answer..
>
> Y = {v$233Period, v$234Period, v$236Period, v$235Period}




  • Prev by Date: problem with nonlinearfit
  • Next by Date: Advice?
  • Previous by thread: Re: Extracting all the variables from a list of equations?
  • Next by thread: problem with nonlinear fit