Re: Re: Re: Applying a list of functions to a list of arguments
- To: mathgroup at smc.vnet.net
- Subject: [mg57467] Re: [mg57444] Re: [mg57377] Re: [mg57309] Applying a list of functions to a list of arguments
- From: "David Park" <djmp at earthlink.net>
- Date: Sun, 29 May 2005 01:03:26 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Murray,
MapThread[#[a] &, {{f1, f2, f3}}]
or
{f1, f2, f3}[a]
% // Through
David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/
From: Murray Eisenberg [mailto:murray at math.umass.edu]
To: mathgroup at smc.vnet.net
This problem also reminds me of a simpler one: Given
f = {f1, f2, f3};
a = (* some number *)
what are nice ways of producing the following result?
{f1[a], f2[a], f3[a]}
--
Murray Eisenberg murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305