Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7263 > unrolled thread

Re: Does Union[] reliably sort?

Started byShizu <slivo.vitz@msa.hinet.net>
First post2011-12-16 10:58 +0000
Last post2011-12-16 10:58 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Does Union[] reliably sort? Shizu <slivo.vitz@msa.hinet.net> - 2011-12-16 10:58 +0000

#7263 — Re: Does Union[] reliably sort?

FromShizu <slivo.vitz@msa.hinet.net>
Date2011-12-16 10:58 +0000
SubjectRe: Does Union[] reliably sort?
Message-ID<jcf881$6sr$1@smc.vnet.net>
Mathematically, we don't sort a collection of elements to make it a set.  For computational purposes, sorted sets are easier to compare.  And Mathematica tries to put an expression (say, a set) into a standard (sorted) form during evaluation.  The question of "reliability" depends on what we do with the list.  Sets are just a special case of lists in Mathematica.  Search "guide/ListManipulation" for functions on lists.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web