Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Mathematica scoping / contexts / variable localization

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105135] Re: Mathematica scoping / contexts / variable localization
  • From: AES <siegman at stanford.edu>
  • Date: Sun, 22 Nov 2009 06:08:28 -0500 (EST)
  • Organization: Stanford University
  • References: <32142906.1258547432910.JavaMail.root@n11> <he36g8$efk$1@smc.vnet.net> <he88nu$prb$1@smc.vnet.net>

> > Clear[a, b]
> >
> > ClearAll[f]
> > f[a_, b_][x_] := Exp[-a x] Sin[b x]

I've seen this more complex form of function definition go by once or 
twice in the past, but never used it or learned about it myself.  

Pointers to tutorial explanations?

[Or, more challenging, an explanation, in classic "teach a man to fish" 
mode, of how a mythical "ordinary user" might go about quickly and 
efficiently _finding_ such tutorial explanations, for this specific 
case, in Mathematica documentation.]


  • Prev by Date: Information about method and parameters used in NDSolve
  • Next by Date: Re: MatchQ, silly question
  • Previous by thread: Re: Mathematica scoping / contexts / variable localization
  • Next by thread: Re: Re: Mathematica scoping / contexts / variable localization