MathGroup Archive 2011

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

Search the Archive

Re: How to evaluate parts of an expression, but not other parts?


What about

ReleaseHold[
 Hold[(a + b) + (c + d)] /. 
  i_Symbol /; Context[i] === "System`" :> Hold[i]]

or maybe

ReleaseHold[
 Hold[(a + b) + (c + d)] /. 
  i_Symbol /; Context[i] =!= "Global`" :> Hold[i]] 



  • Prev by Date: Re: How to evaluate parts of an expression, but not other parts?
  • Next by Date: NDSolve with 3 independent variables
  • Previous by thread: Re: How to evaluate parts of an expression, but not other parts?
  • Next by thread: Re: How to evaluate parts of an expression, but not other parts?