Re: Sort
- To: mathgroup at smc.vnet.net
- Subject: [mg19174] Re: Sort
- From: Harald Giese <giese at dkrz.de>
- Date: Tue, 10 Aug 1999 02:52:39 -0400
- Organization: Institut fuer Meereskunde, Universitaet Hamburg
- References: <7odl77$7of@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hermann Meier wrote:
>
> Sort is not reliable. Try the following (Mathematica Version 4):
>
> In[1]:=
> Sort[{0, -Sqrt[2], 5}]
>
> Out[1]=
> {0, 5, -Sqrt[2]}
> ...
>
> One has to apply N to the list to get the correct result:
> ...
Hi Hermann,
have a look at the function definition of Sort:
"Sort[list] sorts the elements of list into canonical order. "
(...)
The canonical ordering used by Mathematica is described in
Section A.3.9.
(...)
Regards,
Harald
--
Harald Giese
Email: giese at dkrz.de
> NEUE TELEFON-NUMMER | NEW PHONE-NUMBER <
Phone: +49 (0)40 42838 5796; Fax: +49 (0)40 5605724
Institut fuer Meereskunde der Universitaet Hamburg
(Institute of Oceanography of the University of Hamburg)
Troplowitzstrasse 7, D-22529 Hamburg