Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: pairing values from a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119780] Re: pairing values from a list
  • From: "McHale, Paul" <Paul.McHale at excelitas.com>
  • Date: Wed, 22 Jun 2011 03:43:53 -0400 (EDT)

Partition[ y, 2]

[This was the first of 10 or so posts with exactly the same answer, so I 
 am posting this one only. Others who posted were Bob Hanlon, Sseziwa Mukasa,
 James Womack, Adriano Pascoletti, Vivek Joshi, DrMajorBob, DC, 
 Sjoerd C. de Vries, and Harvey P. Dale -- moderator]

On Jun 21, 2011, at 7:54 AM, "Priyan Fernando" <priyan.fernando at gmail.com> 
wrote:

>
> y={0.245885, 0.334158, 0.115671, 0.0335952, 0.211846, 0.263921}
>
> can someone pls tell me how you would go about pairing this list? so that:
>
> y={{0.245885, 0.334158},{ 0.115671, 0.0335952},{ 0.211846, 0.263921}}
>
> thanks!
>
>


  • Prev by Date: Re: implicit surfaces from older version of Mathematica
  • Next by Date: Re: How to transform a functional expression into a general expression
  • Previous by thread: Re: pairing values from a list
  • Next by thread: Re: Again : Is there a BNF for Mathematica?