Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15059

Re: Finding a function within an arbitrary expression

From Ulrich Arndt <ulrich.arndt@data2knowledge.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Finding a function within an arbitrary expression
Date 2013-07-01 09:39 +0000
Message-ID <kqrip0$49g$1@smc.vnet.net> (permalink)
References <20130630072942.2AF536A20@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Try position

a = {3*u[1, 0], u[0, 0]/10., 1/u[1, 0]}
pat = u[1, 0]
Position[a, pat]

Ulrich

Am 30.06.2013 um 09:29 schrieb amannucci:

> I am trying to figure out what that pattern is for the following. The 
difficulty here is that I can think textually, but not in Mathematica 
patterns.
>
> I am looking for a function u[1,0] within a list of expressions. The 
function might not be defined yet. For example, a list of expressions 
might be:
>
> {3*u[1,0], u[0,0]/10., 1/u[1,0], ...}
>
> I want to find all the expressions that have the function u[1,0] in 
it. There is certainly a way to do this "textually". How would one do 
this with patterns? Is it possible? Thank you.
>
>


Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Finding a function within an arbitrary expression Ulrich Arndt <ulrich.arndt@data2knowledge.de> - 2013-07-01 09:39 +0000

csiph-web