Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Functions Mapping

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46696] Re: Functions Mapping
  • From: "Drago Ganic" <drago.ganic at in2.hr>
  • Date: Tue, 2 Mar 2004 00:14:19 -0500 (EST)
  • References: <c1qm3a$39e$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Try this ...

In[4]:= X = {x, y};
In[5]:= F = {Sin, Cos};
In[6]:= Outer[#1[#2] &, F, X ]
Out[6]= {{Sin[x], Sin[y]}, {Cos[x], Cos[y]}}

Regards,
Dragi

"Xiaoji Liu" <chmlxj at hotmail.com> wrote in message
news:c1qm3a$39e$1 at smc.vnet.net...
> 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: How to calculate the derivative of matrix w.r.t another matrix?
  • Next by Date: Re: Functions Mapping
  • Previous by thread: Re: Functions Mapping
  • Next by thread: Re: Functions Mapping