MathGroup Archive 2006

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

Search the Archive

Re: Problems with With/Block/Module functions

  • To: mathgroup at
  • Subject: [mg64268] Re: Problems with With/Block/Module functions
  • From: "Jens-Peer Kuska" <kuska at>
  • Date: Wed, 8 Feb 2006 06:29:52 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <dsccna$pae$>
  • Sender: owner-wri-mathgroup at


and the Notation packag with the Symbolize[] 
function help
not ?


"Mukhtar Bekkali" <mbekkali at> schrieb im 
Newsbeitrag news:dsccna$pae$1 at
| Hi:
| I want to use local assignment done for a 
subscripted variable, where
| x1 is ought to be read as x subscript 1, and 
evaluate at local values
| function g[x1] and use the result later on. My 
code (not actual, just
| an example) is as follows:
| x1=0;
| With[{x1=1},y=g[x1]] (* is some specific 
arbitrary function, say x1^2
| *)
| y
| My error message is "Local variable 
specification {x1=0} contains x1=0
| which is an assignment to x1; only assignments 
to symbols are allowed"
| Where on earth does Mathematica see a function 
in x1. To me this is
| just a symbol. Please advise on a workaround. 

  • Prev by Date: Re: Overriding Mathematica function Print
  • Next by Date: Re: DSolve:: Bessel's differential equation
  • Previous by thread: Problems with With/Block/Module functions
  • Next by thread: Re: Problems with With/Block/Module functions