Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

local or global variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110991] local or global variables
  • From: lynette <xiaochu at gmail.com>
  • Date: Fri, 16 Jul 2010 05:16:41 -0400 (EDT)

HI:
    I have encountered a problem as follow, can anyone help? thanks a
lot.


	when sigma is defined as local variable, the function doesn't work
	 f[x_]:=Module[
		{sigma},
		sigma \. {{sigma->1},{sigma->2}}
	]
	when sigma is NOT defined as local variable, the function works

	f[x_]:=Module[
		{},
		sigma \. {{sigma->1},{sigma->2}}
	]


  • Prev by Date: Integration by part
  • Next by Date: MathLink error
  • Previous by thread: Re: Integration by part
  • Next by thread: Re: local or global variables