Re: extracting variables from an expression
- To: mathgroup at smc.vnet.net
- Subject: [mg44144] Re: extracting variables from an expression
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 24 Oct 2003 04:24:12 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <bn8e5q$ngu$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
Cases[x || y || z, _Symbol, Infinity]
Regards
Jens
Peter Schinko wrote:
>
> 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
- Follow-Ups:
- Re: Re: extracting variables from an expression
- From: "Peter Pein" <nospam@spam.no>
- Re: Re: extracting variables from an expression