MathGroup Archive 2001

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

Search the Archive

Re: Howto vonvert a list of functions in a list valued function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28280] Re: Howto vonvert a list of functions in a list valued function
  • From: "Carl K. Woll" <carlw at u.washington.edu>
  • Date: Sat, 7 Apr 2001 03:44:38 -0400 (EDT)
  • Organization: University of Washington
  • References: <9ajn4k$sc9@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Thomas,

Check out the command Through.

funlist={f1,f2,f3};
f[x_]:=Through[funlist[x]]

In[6]:=
f[x]

Out[6]=
{f1[x], f2[x], f3[x]}

Carl Woll
Physics Dept
U of Washington


"Thomas Neff" <t.neff at gsi.de> wrote in message
news:9ajn4k$sc9 at smc.vnet.net...
> 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
>
> --
> Thomas Neff
> Gesellschaft fuer Schwerionenforschung (GSI)
> Email: t.neff at gsi.de   -   PGP key available
> WWW:  http://theory.gsi.de/~tneff/tneff.html
>




  • Prev by Date: Re: How to convert a list of functions in a list valued function
  • Next by Date: Re: Re: Manipulating Strings
  • Previous by thread: Re: Howto vonvert a list of functions in a list valued function
  • Next by thread: Re: Howto vonvert a list of functions in a list valued function