#19110: QQ(0)^-1 crashes
------------------------------------+------------------------
Reporter: dkrenn | Owner:
Type: defect | Status: new
Priority: critical | Milestone: sage-6.9
Component: basic arithmetic | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------------+------------------------
Changes (by jdemeyer):
* priority: major => critical
Old description:
> {{{
> 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`.
New description:
{{{
sage: QQ(0)^(-1)
...
FloatingPointError: Floating point exception
}}}
This should be checked and raise a `ZeroDivisionError`.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/19110#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/d/optout.