Re: Newbie question

*To*: mathgroup at smc.vnet.net*Subject*: [mg25310] Re: [mg25275] Newbie question*From*: Tomas Garza <tgarza01 at prodigy.net.mx>*Date*: Tue, 19 Sep 2000 03:45:37 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

In[1]:= data := {{x, y}, {x1, y1}, {x2, y2}} In[2]:= data /. {a_, b_} -> {a, 1/b} Out[2]= ({{x, 1/y}, {x1, 1/y1}, {x2, 1/y2}} Tomas Garza Mexico City "Jose M Lasso" <jml at accessinter.net> wrote: > 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?