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?


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?