MathGroup Archive 2007

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

Search the Archive

Re: search for an operator in an expression



Hi Daniel,

you may use "Count". Take care to search on all "levels" and prevent 

evaluation of the operator. Asssuming your expression is in: expr, e.g.:

Count[expr, HoldPattern[ Plus[__] ], Infinity]

hope this helps, Daniel





Daniel wrote:

> Is there a way to search for an operator in a symbolic expression? My wish is to show that there is only "+" in a very large expression. Rather than showing an expression on multiple pages I would like to perform a search that shows there is only "+" between the terms. Converting to a string does not seem to work since the expression is written on multiple lines(fractions, exponents etc..)

> 

> Thanks

> 




  • Prev by Date: Re: Quaternions
  • Next by Date: Re: Quick Question
  • Previous by thread: search for an operator in an expression
  • Next by thread: Re: search for an operator in an expression