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: [mg112301] Re: Collecting Positive and Negative Terms
  • From: Michael Knudsen <micknudsen at gmail.com>
  • Date: Wed, 8 Sep 2010 00:59:37 -0400 (EDT)
  • References: <i45rc9$g2p$1@smc.vnet.net>

On Aug 14, 12:32 pm, Bob Hanlon <hanl... at cox.net> wrote:

> myExpression = a + b - c;
>
> DeleteCases[myExpression, Times[-1, ___]]
>
> a+b

Thanks! That was just what I needed!

--
Michael Knudsen


  • Prev by Date: Re: problem with RandomInteger
  • Next by Date: Re: Collecting Positive and Negative Terms
  • Previous by thread: Re: Generating table of contents
  • Next by thread: Re: Collecting Positive and Negative Terms