Re: Selecting Element from List via Pattern Matching
- To: mathgroup at smc.vnet.net
- Subject: [mg89408] Re: [mg89396] Selecting Element from List via Pattern Matching
- From: "W_Craig Carter" <ccarter at mit.edu>
- Date: Mon, 9 Jun 2008 02:25:41 -0400 (EDT)
- References: <200806080632.CAA02645@smc.vnet.net>
Hello Immanuel, I believe this works for your case: Select[t, MemberQ[#, Subscript[a, 2]^2] &] On Sun, Jun 8, 2008 at 2:32 AM, <immanuel.bloch at googlemail.com> wrote: > I am trying to extract from a Power Series all elements with a > certain exponent, e.g. > let us say I have generated a list via > > t = Apply[List, Expand[(Sum[Subscript[a, i], {i, 1, 5}])^3]] > > How can I then extract all terms with e.g. a_2^2 in it or any other > exponent?
- References:
- Selecting Element from List via Pattern Matching
- From: immanuel.bloch@googlemail.com
- Selecting Element from List via Pattern Matching