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