MathGroup Archive 2009

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

Search the Archive

Re: Mathematica scoping / contexts / variable localization


> > 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