#12967: bugs in comparisons between constants, wrapped pyobjects, infinity
-------------------------------------------------+-------------------------
       Reporter:  dkrenn                         |        Owner:  burcin
           Type:  defect                         |       Status:
       Priority:  major                          |  needs_work
      Component:  symbolics                      |    Milestone:  sage-6.8
       Keywords:  compare pi infinity bool       |   Resolution:
        Authors:  Travis Scrimshaw, Ralf         |    Merged in:
  Stephan                                        |    Reviewers:  Karl-
Report Upstream:  Reported upstream. Developers  |  Dieter Crisman
  acknowledge bug.                               |  Work issues:
         Branch:                                 |       Commit:
   Dependencies:  pynac-0.3.9.2                  |     Stopgaps:
-------------------------------------------------+-------------------------
Changes (by rws):

 * commit:  c5845f6b18d582807dafaaf60ad6a5c8017173f3 =>
 * dependencies:  #17984 => pynac-0.3.9.2
 * branch:  u/rws/12967-2 =>
 * milestone:  sage-6.6 => sage-6.8


Comment:

 Pynac git master has a fix that does this:
 {{{
 sage: bool(SR(oo) > 5)
 True
 sage: bool(5 < SR(oo))
 True
 sage: bool(SR(2)<Infinity)
 True
 sage: bool(pi<Infinity)
 True
 sage: bool(pi>Infinity)
 False
 sage: bool(2*pi<Infinity)
 True
 sage: bool(SR(pi) < SR(Infinity))
 True
 sage: bool(sqrt(2)<oo)
 True
 sage: bool(log(2)<oo)
 True
 sage: bool(e<oo)
 True
 sage: bool(e+pi<oo)
 True
 sage: bool(e^pi<oo)
 True
 sage: bool(SR(2)<-oo)
 False
 sage: bool(SR(2)>-oo)
 True
 sage: bool(exp(2)>-oo)
 True
 }}}
 It uses info flags and evalf where applicable. Some function info flags
 were introduced earlier in Pynac.

--
Ticket URL: <http://trac.sagemath.org/ticket/12967#comment:61>
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 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-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to