MathGroup Archive 2000

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

Search the Archive

Re: Newbie question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25302] Re: [mg25275] Newbie question
  • From: Ken Levasseur <Kenneth_Levasseur at uml.edu>
  • Date: Tue, 19 Sep 2000 03:45:26 -0400 (EDT)
  • Organization: UMass Lowell
  • References: <200009172133.RAA20780@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Jose:

One way to do it is

data1 // Transpose // MapAt[1/# &, #, 2] & // Transpose

In[49]:=
{{1, 1}, {2, 4}, {3, 9}, {4, 16}, {5, 25}} // Transpose // 
    MapAt[1/# &, #, 2] & // Transpose
Out[49]=
\!\({{1, 1}, {2, 1\/4}, {3, 1\/9}, {4, 1\/16}, {5, 1\/25}}\)

Ken Levasseur
Mathematical Sciences
UMass Lowell


Jose M Lasso wrote:
> 
> Hi Mathgroup,
> 
> I have some numerical data: data:={{x,y},{x1,y1},{x2,y2}....{xn,yn}},
> I want to transform the data like this:
> data1:={{x,1/y},{x1,1/y1},{x2,1/y2}....{xn,1/yn}}, how can I do this
> transformation? Thanx in advance. Regards
> 
> Jose M Lasso


  • Prev by Date: Re: Re: powersum with a function with variable count of parameters
  • Next by Date: Re: Limit of sequence
  • Previous by thread: Newbie question
  • Next by thread: Re: Newbie question