 
 
 
 
 
 
Re: pure functions vs. functions
- To: mathgroup at smc.vnet.net
- Subject: [mg57451] Re: [mg57415] pure functions vs. functions
- From: DrBob <drbob at bigfoot.com>
- Date: Sat, 28 May 2005 05:39:20 -0400 (EDT)
- References: <200505270856.EAA07661@smc.vnet.net>
- Reply-to: drbob at bigfoot.com
- Sender: owner-wri-mathgroup at wolfram.com
Neither of those is a pure function. This one is:
f = Sin[#]&
Bobby
On Fri, 27 May 2005 04:56:53 -0400 (EDT), Marcin Rak <umrakmm at cc.umanitoba.ca> wrote:
>
> Hey everyone, I had a beginner question:  what exactly is the difference
> between a pure function and just a function?
> ie. the difference between declaring functions using
> f[arg1_,...,argn_] := "some expression making use of the arguments"
>
> and explicilty calling Function[{arg1_,...,argn_}, "same expression
> making use of the arguments"]
>
> They have different heads!!
>
> Thanks
> MR
>
>
>
>
>
-- 
DrBob at bigfoot.com
- References:
- pure functions vs. functions
- From: "Marcin Rak" <umrakmm@cc.umanitoba.ca>
 
 
- pure functions vs. functions

