MathGroup Archive 2003

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

Search the Archive

Re: extracting variables from an expression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44141] Re: extracting variables from an expression
  • From: "Steve Luttrell" <luttrell at _removemefirst_westmal.demon.co.uk>
  • Date: Fri, 24 Oct 2003 04:24:09 -0400 (EDT)
  • References: <bn8e5q$ngu$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Something like this might do what you want:

Cases[x || y || z, _?AtomQ, \[Infinity]]

--
Steve Luttrell
West Malvern, UK

"Peter Schinko" <Peter.Schinko at utanet.at> wrote in message
news:bn8e5q$ngu$1 at smc.vnet.net...
> Hi,
>
> I'm looking for a function that extracts all variables from a boolean
> expression.
> For example:
> x || y || z
> should return something similar to {x, y, z}.
>
> Is there a similar function in Mathematica? If so, how does it work?
>
> Thanks very much
> Peter
>
>



  • Prev by Date: Re: Unknown option PlotLegend in Plot
  • Next by Date: Re: extracting variables from an expression
  • Previous by thread: Re: Re: extracting variables from an expression
  • Next by thread: Re: extracting variables from an expression