Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

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


  • Prev by Date: Re: polynomialreduce
  • Next by Date: Re: Sorting nested list
  • Previous by thread: pure functions vs. functions
  • Next by thread: Re: pure functions vs. functions