MathGroup Archive 2007

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

Search the Archive

Extracting subexpressions


Hi Group

I have a (potentially very large) mathematical expression myExpr. I
want to extract all the non atomic subexpressions. I have found the
two following solutions:
Level[myExpr, {-\[Infinity], -2}]
and
Cases[myExpr, _, {-\[Infinity], -2}]

On very large expressions that I cannot reproduce here it seems that
Level is a bit faster. Is there an even faster way to obtain the same
result ?

Thanks.



  • Prev by Date: two integrals
  • Next by Date: question about evaluation and Manipulate
  • Previous by thread: Re: two integrals
  • Next by thread: question about evaluation and Manipulate