MathGroup Archive 2008

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

Search the Archive

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?


  • Prev by Date: How to get an optimal simplification?
  • Next by Date: Problem inputting data into a table that is larger than a window
  • Previous by thread: Selecting Element from List via Pattern Matching
  • Next by thread: Re: Selecting Element from List via Pattern Matching