Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16353
| From | Alex Krasnov <akrasnov@cory.eecs.berkeley.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | inconsistent ordering behavior |
| Date | 2013-12-20 10:24 +0000 |
| Message-ID | <l915tf$nsi$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
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
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
inconsistent ordering behavior Alex Krasnov <akrasnov@cory.eecs.berkeley.edu> - 2013-12-20 10:24 +0000
csiph-web