MathGroup Archive 2014

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

Search the Archive

checking the sign of all terms in a long expression


hello all
is there to check the signs of all terms in a symbolic expression, like

toCheck = a + a b + a b c + a c - b + bc + d ....

in this case, with the assumption that the a, b, c etc are all positive, only one term is negative (b by itself) and the rest are positive.  I have expressions like this that have a hundred or more terms and i'm worried i might not be catching all those that are of a different sign. 

thanks



  • Prev by Date: Re: Do we need a When function?
  • Next by Date: Re: variable tube radius and variable surface thickness
  • Previous by thread: Re: Do we need a When function?
  • Next by thread: R: checking the sign of all terms in a long expression