RE: Functions Mapping
- To: mathgroup at smc.vnet.net
- Subject: [mg46689] RE: [mg46679] Functions Mapping
- From: "David Park" <djmp at earthlink.net>
- Date: Sun, 29 Feb 2004 03:16:35 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
XJ,
Outer[#1[#2] &, {Sin, Cos, Exp}, {x, y}]
{{Sin[x], Sin[y]}, {Cos[x], Cos[y]}, {E^x, E^y}}
David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/
From: Xiaoji Liu [mailto:chmlxj at hotmail.com]
To: mathgroup 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