#12967: comparison of pi and infinity wrong
-------------------------+--------------------------------------------------
   Reporter:  dkrenn     |             Owner:  burcin                  
       Type:  defect     |            Status:  new                     
   Priority:  major      |         Milestone:  sage-5.1                
  Component:  symbolics  |          Keywords:  compare pi infinity bool
Work issues:             |   Report Upstream:  N/A                     
  Reviewers:             |           Authors:                          
  Merged in:             |      Dependencies:                          
   Stopgaps:             |  
-------------------------+--------------------------------------------------
 We have
 {{{
 sage: bool(pi<Infinity)
 False
 sage: bool(pi>Infinity)
 True
 }}}
 which is obviously wrong. It seems that the problem only occurs with
 {{{pi}}}, because the following give correct results
 {{{
 sage: bool(pi<2*pi)
 True
 sage: bool(2*pi<Infinity)
 True
 sage: bool(e<Infinity)
 True
 sage: bool(e<pi)
 True
 }}}

 This was reported on [https://groups.google.com/d/topic/sage-
 support/2GlgJKOfK3g/discussion sage-support] by Robert Samal.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12967>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to