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}}}
- Follow-Ups:
- Re: Default sort of vector is by "complexity" of expression!!?????
- From: Mark McClure <mcmcclur@unca.edu>
- Re: Default sort of vector is by "complexity" of expression!!?????