Re: How build a ?TestFuntion that applied to a list gives only the elements that are function of x
- To: mathgroup at smc.vnet.net
- Subject: [mg33009] Re: How build a ?TestFuntion that applied to a list gives only the elements that are function of x
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 26 Feb 2002 04:34:48 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <a57hmf$2l4$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, what's wrong with : Select[{Sin[a x], b x, t, c r}, ! FreeQ[#, x] &] that you need a rule and a relacement ? Regards Jens "J. Guillermo Sanchez" wrote: > > How build a ?TestFuntion that applied to a list give only the elements > that are function of x > > Example: > > In[]:= {Sin[a x], b x, t, c r}/.?TestFuntion > > gives > > Out[] = {Sin[a x], b x} > > Thanks > > Guillermo Sanchez