MathGroup Archive 1996

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

Search the Archive

Re: How can I Flatten from the inside out, not the outside in?


In article <57usmq$3cb at dragonfly.wolfram.com>, welter at texoma.com (Jason Welter) writes:
>Here is the first of 699 elements of a list I want to 
>Flatten:
>
>{{{6.063,-36.544}},{{6.063,-35.404}},{{8.403,-36.544}},{{8.403,-35.404}}}
>
>How do I remove the "{{" and "}}" characters?
>
>Jason
>
>
If g =
{{{6.063,-36.544}},{{6.063,-35.404}},{{8.403,-36.544}},{{8.403,-35.404}}}
then Flatten[g] will remove ALL of the inner {{ and }} and so the pairs
will be lost. Presuming that you want to preserve the pairs, use
Flatten[g,1].

Al Hibbard



  • Prev by Date: losing unconvergent roots in FindRoot
  • Next by Date: Re: Cross product
  • Previous by thread: How can I Flatten from the inside out, not the outside in?
  • Next by thread: Re: How can I Flatten from the inside out, not the outside in?