#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:
-------------------------------------------------+-------------------------
Description changed by rws:

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.
>
> '''Apply''' [attachment:trac_12967-symbolic_ring-review.patch].
>
> See the discussion at https://groups.google.com/forum/?hl=en#!topic/sage-
> devel/Oip2hzvjFZQ

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.

 See the discussion at https://groups.google.com/forum/?hl=en#!topic/sage-
 devel/Oip2hzvjFZQ

 https://github.com/pynac/pynac/issues/69

 ---------------
 Previously proposed patch: [attachment:trac_12967-symbolic_ring-
 review.patch].

--

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