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

MathGroup Archive 2013

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

Search the Archive

inconsistent ordering behavior

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132131] inconsistent ordering behavior
  • From: Alex Krasnov <akrasnov at cory.eecs.berkeley.edu>
  • Date: Fri, 20 Dec 2013 05:34:42 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

The following issue still exists in Mathematica 9.0.1:

In:	Ordering[{0, 0}, 2][[2]]
Out:	2

In:	Ordering[{0, 0}, -1][[-1]]
Out:	2

In:	Ordering[{0, 0}, 2, OrderedQ[{#1, #2}] &][[2]]
Out:	2

In:	Ordering[{0, 0}, -1, OrderedQ[{#1, #2}] &][[-1]]
Out:	1

All of the examples should return 2, since they are functionally 
equivalent according to the documentation.

Alex



  • Prev by Date: Re: ScaledListPlot functionality
  • Next by Date: MarkovProcessProperties bugs
  • Previous by thread: Re: how to calculate the 3D centre point of rotation given the angle of
  • Next by thread: MarkovProcessProperties bugs