Re: How to pick all terms which have are multiplied with a factor, e.g., 2
- To: mathgroup at smc.vnet.net
- Subject: [mg35475] Re: [mg35463] How to pick all terms which have are multiplied with a factor, e.g., 2
- From: Tomas Garza <tgarza01 at prodigy.net.mx>
- Date: Sun, 14 Jul 2002 06:19:51 -0400 (EDT)
- References: <200207130749.DAA08600@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Would this help? In[1]:= expr = 2*a*b^2*c^3 + 13*x*y*a*b + 2/d; In[2]:= Cases[expr, 2*_] Out[2]= {2*a*b^2*c^3, 2/d} Tomas Garza Mexico City ----- Original Message ----- From: "Matthias G. Imhof" <mgi at vt.edu> To: mathgroup at smc.vnet.net Subject: [mg35475] [mg35463] How to pick all terms which have are multiplied with a factor, e.g., 2 > I would like to simplify a large symbolic summation. I know that terms which > are multiplied with a common integer factor can ultimately be combined and > simplified. > > As an example: from the sum > > 2 a b^2 c^3 + 13 x y a b + 2 d^-1 > > I would like to pick 2 a b^2 c^3 + 2 d^-1 to combine them; and similarly for > other common integer factors. I suspect that patterns would help, but I did > not manage to devise a correct one. > > Matthias > >
- References:
- How to pick all terms which have are multiplied with a factor, e.g., 2
- From: "Matthias G. Imhof" <mgi@vt.edu>
- How to pick all terms which have are multiplied with a factor, e.g., 2