MathGroup Archive 2007

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

Search the Archive

Re: Sort with -Infinity fails


Hi,

and

Sort[{-Infinity, -8, 5}, #1 < #2 &]

doen not help ?

Regards
   Jens

Tom Aldenberg wrote:
> Dear MathGroup,
> 
> Minus Infinity (-Infinity) is smaller than -8, but Sort does not sort it as
> expected.
> Is there a Real minus Infinity?
> 
> 
> In[75]:=
>       -Infinity < -8
> Out[75]=
>       True
> 
> In[76]:=
>       Sort[{-Infinity, -8, 5}]
> Out[76]=
>       {-8, 5, -∞}
> 
> 
> Regards,
> 
> Tom Aldenberg
> 
> ____________________________________________________________________________
> 
> DISCLAIMER:  http://www.rivm.nl/disclaimer.htm
> 
> 


  • Prev by Date: Digital Image Processing 2.1 now available
  • Next by Date: Integrals involving square roots
  • Previous by thread: Re: Sort with -Infinity fails
  • Next by thread: Re: Sort with -Infinity fails