MathGroup Archive 2005

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

Search the Archive

Re: How to reverse sign on the y's in a list of (x, y)'s?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61257] Re: [mg61231] How to reverse sign on the y's in a list of (x, y)'s?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 14 Oct 2005 05:53:48 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

data=Table[{Random[],Random[]},{3}]

{{0.5566055767951565, 0.11695563345151412}, 
  {0.5886363424084826, 0.7475217203750398}, 
  {0.7924491804881474, 0.03645907331756618}}

{1,-1}#&/@data

{{0.5566055767951565, -0.11695563345151412}, 
  {0.5886363424084826, -0.7475217203750398}, 
  {0.7924491804881474, -0.03645907331756618}}


Bob Hanlon

> 
> From: sherifffruitfly at gmail.com
To: mathgroup at smc.vnet.net
> Date: 2005/10/13 Thu AM 01:39:38 EDT
> Subject: [mg61257] [mg61231] How to reverse sign on the y's in a list of (x, y)'s?
> 
> Hi all,
> 
> This is really dumb, but I just don't know how to do it...
> 
> Import from excel gives me a list of ordered pairs, and I want the 2nd
> element of each pair to be of opposite sign. Sticking the negative sign
> in front of the entire Import statement reverses both the 1st and the
> 2nd elements (duh). How do I get just the second item to reverse sign?
> 
> thanks!
> 
> 


  • Prev by Date: Plotting a phase boundary
  • Next by Date: Re: How to reverse sign on the y's in a list of (x, y)'s?
  • Previous by thread: Re: How to reverse sign on the y's in a list of (x, y)'s?
  • Next by thread: Re: How to reverse sign on the y's in a list of (x, y)'s?