#15010: Consistency between Rational.minpoly and NumberFieldElement.minpoly
----------------------------------------------+----------------------------
Reporter: mmezzarobba | Owner:
Type: PLEASE CHANGE | Status: needs_review
Priority: minor | Milestone: sage-6.0
Component: number fields | Resolution:
Keywords: | Merged in:
Authors: Marc Mezzarobba | Reviewers:
Report Upstream: N/A | Work issues:
Branch: u/mmezzarobba/ticket/15010 | Commit:
Dependencies: | Stopgaps:
----------------------------------------------+----------------------------
Comment (by cremona):
I don't know why this is tagged "needs review" when there is no patch.
I would support changing
{{{
def minpoly(self, var):
}}}
to
{{{
def minpoly(self, var='x'):
}}}
for consistency with number fields.
How would it work to move this to FieldElement? To be well-defined you
would have to know a subfield over which the element was algebraic, and
that will not always exist.
So let's just make the trivial change here (and add a doctest of course).
--
Ticket URL: <http://trac.sagemath.org/ticket/15010#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.