#12967: bugs in comparisons between constants, wrapped pyobjects, infinity
-------------------------------------+-------------------------------------
       Reporter:  dkrenn             |        Owner:  burcin
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.6
      Component:  symbolics          |   Resolution:
       Keywords:  compare pi         |    Merged in:
  infinity bool                      |    Reviewers:  Karl-Dieter Crisman
        Authors:  Travis Scrimshaw,  |  Work issues:
  Ralf Stephan                       |       Commit:
Report Upstream:  N/A                |  c5845f6b18d582807dafaaf60ad6a5c8017173f3
         Branch:  u/rws/12967-2      |     Stopgaps:
   Dependencies:  #17984             |
-------------------------------------+-------------------------------------

Comment (by pbruin):

 Replying to [comment:47 ppurka]:
 > Replying to [comment:44 pbruin]:
 > > Maybe we should discourage users from using `x in RR`.  There is the
 following alternative:
 > > {{{
 > > sage: pi.is_real()
 > > True
 > > }}}
 >
 > I don't think this is a good idea. This breaks consistency across the
 different fields.
 Only if you identify `RR` with the mathematical field '''R''' of real
 numbers.  If we are serious about presenting `RR` as a certain set of
 numbers that is quite different from the mathematical field '''R''' (for
 example, `Infinity in RR` already returns `True`), then we can just let
 `pi in RR` return `False`, emphatically warn users about this, and say
 that different methods are needed to decide if an expression represents a
 mathematical real number.

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