Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Placing the "&"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg114867] Re: Placing the "&"
  • From: ziloo <ziloo_1 at yahoo.com>
  • Date: Tue, 21 Dec 2010 00:17:28 -0500 (EST)
  • References: <iemqaa$m9m$1@smc.vnet.net>

Yes...that answers my question.  Thank you ^_^ !

ziloo


On Dec 20, 8:41 am, Themis Matsoukas <tmatsou... at me.com> wrote:
> Ziloo,
>
> I am not sure what you mean by "once a pure function becomes an argument 
for another standard function [...]".  A pure function is the entire construct that includes # and ends with &. Maybe you are referring to the # as the pure function? That's only the placeholder for the dummy variable. For example, in
>
> PrimeQ[2^(#)+1]&
>
> the pure function is the entire line, not just the #. The above is equivalent to the standard function,
>
> f[x_]:= PrimeQ[2^(x)+1]
>
> Compare now PrimeQ[2^(#) + 1] &[2] and f[2]. They both evaluate the function at x=2 and give the same answer.
>
> Does this help?
>
> Themis



  • Prev by Date: Factorization with respect to Quaternions
  • Next by Date: Re: "Accumulate" with operator Times.
  • Previous by thread: Re: Placing the "&"
  • Next by thread: GPS