MathGroup Archive 2004

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

Search the Archive

Re: Functions Mapping

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46685] Re: Functions Mapping
  • From: "Xiaoji Liu" <chmlxj at hotmail.com>
  • Date: Sun, 29 Feb 2004 03:16:33 -0500 (EST)
  • References: <c1qm3a$39e$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

>>How about these?
>>myF[x_]:={Sin[x],Cos[x]}
>>Thread[myF[{x,y}]]

>>or just

>>{Sin[#],Cos[#]}&/@{x,y}

>>which is the same as

>>Map[{Cos[#],Sin[#]}&,{x,y}]

Ya, it works.
But can I just treat Sin, Cos as operators, and do not use
temporary variables, such as #, x_

:)
XJ



  • Prev by Date: zeroes of the quaternion zeta function.
  • Next by Date: Re: Functions Mapping
  • Previous by thread: zeroes of the quaternion zeta function.
  • Next by thread: Re: Functions Mapping