Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*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 1999

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

Search the Archive

Re: Manipulating a list of pairs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19726] Re: [mg19689] Manipulating a list of pairs
  • From: Ken Levasseur <Kenneth_Levasseur at uml.edu>
  • Date: Mon, 13 Sep 1999 02:40:57 -0400
  • Organization: UMass Lowell Mathematical Sciences
  • References: <199909112035.QAA04395@smc.vnet.net.>
  • Sender: owner-wri-mathgroup at wolfram.com

Hans:

All you need to do is turn lumpi into a pure function:

Map[ {First[#], Power[2 Pi First[#],2] U / Last[#]}&, thelist]

Ken Levasseur
UMass Lowell

Hans Steffani wrote:
> 
> I have a list of pairs and manipulate it with things like
> 
> lumpi[{f_, amp_}]:={f, Power[2 Pi f,2] U / amp}
> Map[ lumpi, thelist]
> 
> is there an easier way without introducing "lumpi" to do this?
> 
> Hans Friedrich Steffani
> --
> Hans Friedrich Steffani
> Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz
> mailto:hans.steffani at e-technik.tu-chemnitz.de
> http://www.tu-chemnitz.de/~hfst/


  • Prev by Date: Re: Don't want to calculate scalar product
  • Next by Date: Re: Re: Mathematica can't win against Tiger Woods
  • Previous by thread: Manipulating a list of pairs
  • Next by thread: Re: Manipulating a list of pairs