Services & Resources / Wolfram Forums
MathGroup Archive
*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
  • Subject: [mg46690] Re: Functions Mapping
  • From: "Robert G. Wilson v" <rgwv at>
  • Date: Sun, 29 Feb 2004 03:16:36 -0500 (EST)
  • References: <c1qm3a$39e$>
  • Sender: owner-wri-mathgroup at

Dear XJ,

	Say that a=Range[10], and you wish to map 1..10 into {Sin and Cos}.

	Try {Sin[#], Cos[#]} & /@ a

	Is not mathematica great once you find 'tricks' like this.


Xiaoji Liu 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?
> Thanks,
> XJ

  • Prev by Date: RE: Functions Mapping
  • Next by Date: Exceed 4Gb memory limit with an Apple G5?
  • Previous by thread: RE: Functions Mapping
  • Next by thread: Exceed 4Gb memory limit with an Apple G5?