MathGroup Archive 1999

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

Search the Archive

Re: Manipulating a list of pairs


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