MathGroup Archive 2005

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

Search the Archive

Re: Simple List manipulation question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58491] Re: [mg58476] Simple List manipulation question
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 4 Jul 2005 02:24:12 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

x={{1,2,3,4,5},{1,4,9,16,25}};

Thread[x]

{{1, 1}, {2, 4}, {3, 9}, {4, 16}, {5, 25}}

Transpose[x]

{{1, 1}, {2, 4}, {3, 9}, {4, 16}, {5, 25}}


Bob Hanlon

> 
> From: DAN BIKLE <dbikle at gmail.com>
To: mathgroup at smc.vnet.net
> Date: 2005/07/03 Sun AM 03:57:52 EDT
> Subject: [mg58491] [mg58476] Simple List manipulation question
> 
> Dear Mathematica Experts,
> 
> Suppose I have a list like this:
> {{1, 2, 3, 4, 5}, {1, 4, 9, 16, 25}}
> 
> Is there a quick way to transform it into this:
> 
> {{1,1},{2,4},{3,9},{4,16},{5,25}}
> 
> ??
> 
> -Dan
> --
> dbikle at gmail.com
> 
> 


  • Prev by Date: Re: Simple List manipulation question
  • Next by Date: Re: Simple List manipulation question
  • Previous by thread: Re: Simple List manipulation question
  • Next by thread: Re: Simple List manipulation question