MathGroup Archive 2006

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

Search the Archive

Re: How to extract functions from a list and call them with any argument?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65939] Re: How to extract functions from a list and call them with any argument?
  • From: "ravi" <rv15i at yahoo.se>
  • Date: Mon, 24 Apr 2006 06:01:48 -0400 (EDT)
  • References: <e2fkto$bp7$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

You are almost there. Your code needs just a tiny little extra
modification.
Try:
funclist[x_]:= {Sin[x], x^3, Cos[x]^2}
Then, 
funclist[t][[1]]
gives, as you desire,
Out[5]=
Sin[t]
/ravi


  • Prev by Date: how to iterate
  • Next by Date: Re: Axes with arrowheads !?
  • Previous by thread: Re: How to extract functions from a list and call them with any argument?
  • Next by thread: Re: How to extract functions from a list and call them with any argument?