Thats because the infinity ring has no NaN. RR has its own implementation 
of infinities, but if you want to consistently compare infinity with any 
other Sage element then everything in Sage has to coerce into the Sage 
infinity ring.

There are various improvements that one could make to the infinity ring, 
feel free to work on that. At least for now, there are a number of funny 
cases when using special values like NaN or intervals (RealIntervalField). 
But at least they are all less than infinity.


On Friday, October 17, 2014 9:04:27 AM UTC+1, Jonas Jermann wrote:
>
> On 16.10.2014 23:09, Volker Braun wrote: 
> > sage: RR('nan') 
> > NaN 
> > 
> > Its one of the possible elements of RR, but not ZZ. 
>
> sage: RR(NaN)*RR(infinity) 
> NaN 
> sage: RR(NaN)*infinity 
> -Infinity 
>
> Huh? 
>
>
> Regards 
>      Jonas 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to