MathGroup Archive 2000

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

Search the Archive

Re: Newbie question


Hi Jose,

> 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
Not very sophisticated, but should do what you want:

Map[ {#[[1]], 1/#[[2]]} &, data]


Albert


  • Prev by Date: Re: powersum with a function with variable count of parameters
  • Next by Date: Re: point inside torus
  • Previous by thread: Re: Newbie question
  • Next by thread: Re: Newbie question