#12967: comparison of pi and infinity wrong
--------------------------------------------+-------------------------------
       Reporter:  dkrenn                    |         Owner:  burcin            
 
           Type:  defect                    |        Status:  needs_review      
 
       Priority:  major                     |     Milestone:  sage-5.6          
 
      Component:  symbolics                 |    Resolution:                    
 
       Keywords:  compare pi infinity bool  |   Work issues:                    
 
Report Upstream:  N/A                       |     Reviewers:  Karl-Dieter 
Crisman
        Authors:  Travis Scrimshaw          |     Merged in:                    
 
   Dependencies:                            |      Stopgaps:                    
 
--------------------------------------------+-------------------------------
Changes (by kcrisman):

  * reviewer:  => Karl-Dieter Crisman


Old description:

> 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.

New description:

 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.

 '''Apply''' [attachment:trac_12967-symbolic_ring-review.patch].

--

Comment:

 Patchbot, apply trac_12967-symbolic_ring-review.patch

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12967#comment:7>
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