Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Simple List manipulation question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58489] Re: [mg58476] Simple List manipulation question
  • From: klamser <klamser at t-online.de>
  • Date: Mon, 4 Jul 2005 02:24:10 -0400 (EDT)
  • References: <200507030757.DAA18308@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In[1]:=
Transpose[{{1, 2, 3, 4, 5},
   {1, 4, 9, 16, 25}}]
 From In[1]:=
"This:0. Seconds Total:0.42 \
Seconds"
Out[1]=
{{1, 1}, {2, 4}, {3, 9},
  {4, 16}, {5, 25}}

DAN BIKLE schrieb:

>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: how to find n in expression x^n using a pattern?
  • Next by Date: Re: Simple List manipulation question
  • Previous by thread: Simple List manipulation question
  • Next by thread: Re: Simple List manipulation question