Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*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 2000

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

Search the Archive

Function to transform lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22126] Function to transform lists
  • From: "Enrique Cao" <cao at mundo-r.com>
  • Date: Wed, 16 Feb 2000 02:34:42 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi  All :

         I need  help  in  order to transform the list A  to the list B.

              How can I get a function to do that ?




A = {{{30, -2}},
    {{45, -3}},
    {{60, -4}},
    {{45, -3}, {45, -5}},
    {{30, -2}, {30, -6}},
    {{45, -7}},
    {{60, -8}},
    {{60, -8}, {60, -9}},
    {{60, -8}, {60, -9}, {60, -10}},
    {{60, -8}, {60, -9}, {60, -10}, {60, -11}},
    {{60, -8}, {60, -9}, {60, -10}, {60, -11}, {60, -12}},
    {{45, -7}, {45, -13}}, {{45, -7}, {45, -13}, {45, -14}},
    {{45, -7}, {45, -13}, {45, -14}, {45, -15}},
    {{30, -2}, {30, -6}, {30, -16}},
    {{45, -17}},
    {{45, -17}, {45, -18}},
    {{45, -17}, {45, -18}, {45, -19}},
    {{45, -17}, {45, -18}, {45, -19}, {45, -20}},
    {{45, -17}, {45, -18}, {45, -19}, {45, -20}, {45, -21}},
 {{45, -17}, {45, -18}, {45, -19}, {45, -20}, {45, -21}, {45, -22}},
{{45, -17}, {45, -18}, {45, -19}, {45, -20}, {45, -21},
{45, -22},{45, -23}},
{{30, -2}, {30, -6}, {30, -16}, {30, -24}},
{{45, -25}},
 {{60, -26}},
 {{45, -25}, {45, -27}},
 {{45, -25}, {45, -27}, {45, -28}}}


B = {{{60, -4}},
    {{45, -3}, {45, -5}},
    {{60, -8}, {60, -9}, {60, -10}, {60, -11}, {60, -12}},
    {{45, -7}, {45, -13}, {45, -14}, {45, -15}},
    {{45, -17}, {45, -18}, {45, -19}, {45, -20}, {45, -21},
{45, -22},{45, -23}},
    {{30, -2}, {30, -6}, {30, -16}, {30, -24}},
    {{60, -26}},
    {{45, -25}, {45, -27}, {45, -28}}}



                     Thank you very much

                     Enrique Cao

cao at mundo-r.com





  • Prev by Date: Re: Simple Problem (I suppose...)
  • Next by Date: Re: algorithm to generate 1/f noise
  • Previous by thread: getting radial data into a cartesian grid
  • Next by thread: Re: Function to transform lists