MathGroup Archive 2010

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

Search the Archive

Re: Collecting Positive and Negative Terms

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112303] Re: Collecting Positive and Negative Terms
  • From: Michael Knudsen <micknudsen at gmail.com>
  • Date: Wed, 8 Sep 2010 00:59:59 -0400 (EDT)
  • References: <i3tnsg$s5l$1@smc.vnet.net> <i40eu6$bvq$1@smc.vnet.net>

On Aug 14, 12:32 pm, Albert Retey <a... at gmx-topmail.de> wrote:

> Cases[expr, _?Positive | _Symbol | Times[_?Positive, ___]]

This may, in fact, be the solution. Thanks for pointing my attention
the the subtleties of pattern matching in Mathematica!

--
Michael Knudsen


  • Prev by Date: Re: Collecting Positive and Negative Terms
  • Next by Date: Re: Collecting Positive and Negative Terms
  • Previous by thread: Re: Collecting Positive and Negative Terms
  • Next by thread: Re: Collecting Positive and Negative Terms