MathGroup Archive 1999

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

Search the Archive

"f[x_]:= 2 x" vs. "f = 2 #&"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16365] "f[x_]:= 2 x" vs. "f = 2 #&"
  • From: "Kevin Jaffe" <kj0 at mailcity.com>
  • Date: Thu, 11 Mar 1999 02:16:41 -0500
  • Organization: MailCity (http://www.mailcity.lycos.com:80)
  • Sender: owner-wri-mathgroup at wolfram.com

What significant differences exist among the following
three ways to define a function f:

  f[x_]:= 2 x


  f = Function[x, 2 x]


  f = 2 #&

Are there situations where one form is better than the others?

Thanks,

KJ



Get your FREE Email at http://mailcity.lycos.com
Get your PERSONALIZED START PAGE at http://personal.lycos.com


  • Prev by Date: Supressing Plot Output
  • Next by Date: What is the greatest known Fibonacci number?
  • Previous by thread: Re: Supressing Plot Output
  • Next by thread: RE: "f[x_]:= 2 x" vs. "f = 2 #&"