Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6245

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

From Rui <rui.rojo@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to evaluate parts of an expression, but not other parts?
Date 2011-11-07 10:52 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j98d8t$3lo$1@smc.vnet.net> (permalink)
References <j930l9$a3d$1@smc.vnet.net>

Show all headers | View raw


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]] 

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to evaluate parts of an expression, but not other parts? Julian Francis <julian.w.francis@gmail.com> - 2011-11-05 09:46 +0000
  Re: How to evaluate parts of an expression, but not other parts? Silvia <wyelen@gmail.com> - 2011-11-06 11:01 +0000
  Re: How to evaluate parts of an expression, but not other parts? Rui <rui.rojo@gmail.com> - 2011-11-07 10:52 +0000
  Re: How to evaluate parts of an expression, but not other parts? Alexey Popkov <lehin.p@gmail.com> - 2011-11-08 12:14 +0000

csiph-web