Defining a function in module problem?
- To: mathgroup at smc.vnet.net
- Subject: [mg45975] Defining a function in module problem?
- From: jflanigan at netzero.net (jose flanigan)
- Date: Sat, 31 Jan 2004 05:20:40 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
why does this a[x_] := Module[{f, g}, g = z/3; f = Function[z, Evaluate[g]]; f[x]] produce a[1] = z/3 instead of a[1]=1/3 I don't understand the philosophy here. thanks in advance.