sq[x_]:=x*x vs sq=Function[x, x*x]
- To: mathgroup at smc.vnet.net
- Subject: [mg113847] sq[x_]:=x*x vs sq=Function[x, x*x]
- From: kj <no.email at please.post>
- Date: Mon, 15 Nov 2010 05:52:00 -0500 (EST)
One could define a squaring function as either sq[x_] := x*x or sq = Function[x, x*x]; Why/when would one want to choose one form over the other? TIA! kj