#19939: Fixes and improvements to EuclideanRings.ParentMethods._test_quo_rem and
quo_rem for fields
-------------------------------------+-------------------------------------
Reporter: nthiery | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-7.3
Component: categories | Resolution:
Keywords: days70.5 | Merged in:
Authors: Nicolas M. Thiéry | Reviewers: Samuel Lelièvre
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/nthiery/fix_euclideanrings_parentmethods__test_quo_rem_to_use__not_r_is_zero____rather_than__r__0_|
eda4420de3ebe869c55616c15eb44d94c73791b0
Dependencies: #19937 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
I think that the parent of the remainder should be equal to the parent of
the quotient. So I propose something like
{{{
def quo_rem(self, other):
quo = self / other
return quo, quo.parent().zero()
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/19939#comment:25>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.