MathGroup Archive 2010

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

Search the Archive

Re: Collecting Positive and Negative Terms


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