MathGroup Archive 2010

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

Search the Archive

local or global variables


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