Re: Howto vonvert a list of functions in a list valued function
- To: mathgroup at smc.vnet.net
- Subject: [mg28274] Re: [mg28253] Howto vonvert a list of functions in a list valued function
- From: Mianlai Zhou <lailai at carmen.nikhef.nl>
- Date: Sat, 7 Apr 2001 03:44:32 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, It's very easy. Use f[x_] := #[x] & /@ funlist Or more simple: f[x_] := Through @ funlist[x] It's OK. Good luck! Mianlai Zhou NIKHEF, Amsterdam On Fri, 6 Apr 2001, Thomas Neff wrote: > I have a list of functions, say > > funlist = {f1, f2, f3, ..., fn} > > I want to construct a function f, so that > > f[x] gives the list {f1[x], f2[x], f3[x], ... fn[x]} > > f[x_] = funlist[x] doesn't work ;-( > > Is there an elegant way to do this in Mathematica ? > > > Thanks > > Thomas > >