Services & Resources / Wolfram Forums
MathGroup Archive
*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: Zero argument functions

  • To: mathgroup at
  • Subject: [mg61727] Re: Zero argument functions
  • From: Bill Rowe <readnewsciv at>
  • Date: Thu, 27 Oct 2005 05:02:03 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

On 10/26/05 at 1:01 AM, kalymereau at wrote:

>For a "function" with no argument, what is the difference between:




>I find the first syntax simpler, but there are many built-in
>Mathematica functions that use the second one.

Well for one thing they have different heads, i.e.,

In[1]:=f[] := x^2; 
       g := x^2; 
       Head /@ {f, g}

Out[3]={Symbol, Power}


In[4]:=f[] == g


So, it isn't obvious the difference will matter in actual usage
To reply via email subtract one hundred and four

  • Prev by Date: Slow simplify[], integrate[] in 5.2 for Mac
  • Next by Date: Re: Zero argument functions
  • Previous by thread: Re: Zero argument functions
  • Next by thread: Re: Zero argument functions