MathGroup Archive 2004

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

Search the Archive

Re: Functions Mapping

  • To: mathgroup at
  • Subject: [mg46694] Re: Functions Mapping
  • From: drbob at (Bobby R. Treat)
  • Date: Tue, 2 Mar 2004 00:14:17 -0500 (EST)
  • References: <c1qm3a$39e$>
  • Sender: owner-wri-mathgroup at

Sin, Cos, Exp and some other functions are listable; with those you can use

Through[{Sin, Cos, Exp}[{x, y}]]
{{Sin[x], Sin[y]}, {Cos[x], Cos[y]}, {E^x, E^y}}


"Xiaoji Liu" <chmlxj at> wrote in message news:<c1qm3a$39e$1 at>...
> Suppose I have a list of operators {Sin, Cos}, and a list of
> variables {x,y},
> I want to apply {Sin,Cos} on {x,y}, and the outcome to be
> {{Sin[x],Sin[y]},{Cos[x],Cos[y]}}
> I can achieve this by using Table function with a temporary counter i.
> But is there any way to do this without using temporary counters?
> Thanks,
> XJ

  • Prev by Date: Re: Functions Mapping
  • Next by Date: Re: FindMinimum: foo[x_?NumericQ] vs. NumberQ
  • Previous by thread: Re: Functions Mapping
  • Next by thread: Re: FindMinimum