Re: search for an operator in an expression
- To: mathgroup at smc.vnet.net
- Subject: [mg78359] Re: search for an operator in an expression
- From: rob <josh2499 at hotmail.com>
- Date: Fri, 29 Jun 2007 05:42:36 -0400 (EDT)
- References: <f5ta7e$oo$1@smc.vnet.net>
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] >