MathGroup Archive 2004

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

Search the Archive

Re: Functions Mapping


Outer[#1[#2]&, {Sin, Cos},{x,y}]

{{Sin[x], Sin[y]}, {Cos[x], Cos[y]}}


Bob Hanlon

In article <c1qm3a$39e$1 at smc.vnet.net>, "Xiaoji Liu" <chmlxj at hotmail.com>
wrote:

<< 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?


  • Prev by Date: Re: Functions Mapping
  • Next by Date: RE: Functions Mapping
  • Previous by thread: Re: Functions Mapping
  • Next by thread: RE: Functions Mapping