#19110: QQ(0)^-1 raises SIGFPE (which is caught)
-------------------------------------+-------------------------------------
Reporter: dkrenn | Owner:
Type: defect | Status: needs_work
Priority: critical | Milestone: sage-6.9
Component: basic arithmetic | Resolution:
Keywords: | Merged in:
Authors: Benjamin Hackl | Reviewers: Jeroen Demeyer
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/behackl/arithmetic/QQ-inversion | 70e7a0c8707c0b8012d1197005d8e096dcaa129b
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by behackl):
Well, in order to be consistent within `rational.pyx`, this and
{{{
sage: ~QQ(0)
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call
last)
...
ZeroDivisionError: rational division by zero
}}}
have to be changed. I did that with the last two commits. I think that
other inconsistencies (e.g. `SR(0)^(-1)` and `~SR(0)`) should be handled
on a separate ticket. Regarding the inconsistency between Python and Sage:
I don't feel that this is too dramatic, but if there is the wish to
uniformize that, this should be done on a separate ticket, too.
I'll do a `make ptestlong` to check if I oversaw something and report back
with the result later.
--
Ticket URL: <http://trac.sagemath.org/ticket/19110#comment:18>
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.