Re: A question about function

*To*: mathgroup at smc.vnet.net*Subject*: [mg49314] Re: A question about function*From*: Paul Abbott <paul at physics.uwa.edu.au>*Date*: Tue, 13 Jul 2004 05:23:17 -0400 (EDT)*Organization*: The University of Western Australia*References*: <cd07ai$9hn$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

In article <cd07ai$9hn$1 at smc.vnet.net>, Feng-Yin Chang <fychang at slac.stanford.edu> wrote: > For a variable i(for any data type), I want to define a function > like > g[i_]:={a[i],b[i],c[i],d[i]....} . > (g,a,b,c,d,...are all functions or command) > > for example > g[i]:={Max[i],Min[i]} > > Is it possible to gather the list of function like > g[i_]:={a,b,c,d,..}[i] in Mathematica? Yes. Use Through. For example Through[{Max, Min}[{1, 2, 3}]] Cheers, Paul -- Paul Abbott Phone: +61 8 9380 2734 School of Physics, M013 Fax: +61 8 9380 1014 The University of Western Australia (CRICOS Provider No 00126G) 35 Stirling Highway Crawley WA 6009 mailto:paul at physics.uwa.edu.au AUSTRALIA http://physics.uwa.edu.au/~paul