#14857: SR(infinity) / unsigned_infinity returns 0
-------------------------------+--------------------------
       Reporter:  eviatarbach  |        Owner:  AlexGhitza
           Type:  defect       |       Status:  new
       Priority:  major        |    Milestone:  sage-5.12
      Component:  algebra      |   Resolution:
       Keywords:               |    Merged in:
        Authors:               |    Reviewers:
Report Upstream:  N/A          |  Work issues:
         Branch:               |       Commit:
   Dependencies:               |     Stopgaps:
-------------------------------+--------------------------

Comment (by eviatarbach):

 Hmm... But isn't that the case with anything in the Symbolic Ring? For
 example,

 {{{
 sage: SR(4) == 3
 4 == 3
 sage: type(limit(1/x, x=1))
 <type 'sage.symbolic.expression.Expression'>
 }}}

 Calling `bool` with the equality returns a boolean:

 {{{
 sage: bool(a == b)
 True
 }}}

 Call `.pyobject()` on the result from `limit` would be sensible, I think.
 We have the following discrepancy now:

 {{{
 sage: type(diff(1))
 <type 'sage.symbolic.expression.Expression'>
 sage: type(integrate(0, x))
 <type 'sage.rings.integer.Integer'>
 }}}

 It's very troubling how broken arithmetic and comparisons with infinities
 is at the moment, as shown in #11506.

--
Ticket URL: <http://trac.sagemath.org/ticket/14857#comment:2>
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/groups/opt_out.

Reply via email to