MathGroup Archive 2012

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

Search the Archive

Default sort of vector is by "complexity" of expression!!?????

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124023] Default sort of vector is by "complexity" of expression!!?????
  • From: Chris Young <cy56 at comcast.net>
  • Date: Fri, 6 Jan 2012 04:14:58 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Why on earth is that the default?? How is that possibly of any use?

In[1114]:= hexN = hex // N

Out[1114]= {{0., 0.}, {1., 0.}, {0.5, 0.866025}, {-0.5,
  0.866025}, {-1., 0.}, {-0.5, -0.866025}, {0.5, -0.866025}}

In[1115]:= {Part[#, 2], Part[#, 1], #} & /@ hexN

Out[1115]= {{0., 0., {0., 0.}}, {0., 1., {1., 0.}}, {0.866025,
  0.5, {0.5, 0.866025}}, {0.866025, -0.5, {-0.5,
   0.866025}}, {0., -1., {-1.,
   0.}}, {-0.866025, -0.5, {-0.5, -0.866025}}, {-0.866025,
  0.5, {0.5, -0.866025}}}

In[1116]:= Sort[%1115]

Out[1116]= {{-0.866025, -0.5, {-0.5, -0.866025}}, {-0.866025,
  0.5, {0.5, -0.866025}}, {0., -1., {-1., 0.}}, {0.,
  0., {0., 0.}}, {0.,
  1., {1., 0.}}, {0.866025, -0.5, {-0.5, 0.866025}}, {0.866025,
  0.5, {0.5, 0.866025}}}




  • Prev by Date: Re: How to plot divergence of gradient as contour plot
  • Next by Date: Re: NDSolve and "periodic" boundary conditions
  • Previous by thread: Re: Extension to BinLists Function
  • Next by thread: Re: Default sort of vector is by "complexity" of expression!!?????