MathGroup Archive 2007

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

Search the Archive

Re: search for an operator in an expression


Sir, I count 9 "+" in your expr but your Count gives 7 on my 
machine.

chuck009 wrote:

> How about this:
> 
> expr = 2 + a*Exp[-b x] + Sin[c + b] + d + f + Exp[h + k] + Sin[Exp[u + v]];
> 
> Count[#, Plus[__]] & /@ FullForm[expr]
> 


  • Prev by Date: Re: Problems with DrawGraphics and Mathematica 6.0?
  • Next by Date: Motion
  • Previous by thread: Re: search for an operator in an expression
  • Next by thread: Re: search for an operator in an expression