#19110: inconsistency: invert ZZ(0) vs. QQ(0)
--------------------------------+----------------------------
   Reporter:  dkrenn            |            Owner:
       Type:  PLEASE CHANGE     |           Status:  new
   Priority:  major             |        Milestone:  sage-6.9
  Component:  basic arithmetic  |         Keywords:
  Merged in:                    |          Authors:
  Reviewers:                    |  Report Upstream:  N/A
Work issues:                    |           Branch:
     Commit:                    |     Dependencies:
   Stopgaps:                    |
--------------------------------+----------------------------
 {{{
 sage: ZZ(0)^(-1)
 ...
 ZeroDivisionError: Rational division by zero
 }}}
 vs.
 {{{
 sage: QQ(0)^(-1)
 ...
 FloatingPointError: Floating point exception
 }}}
 which is inconsistent (the latter should also raise a `ZeroDivisionError`.

 FYI, `1/ZZ(0)` and `1/QQ(0)` both raise a `ZeroDivisionError`.

--
Ticket URL: <http://trac.sagemath.org/ticket/19110>
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