#11904: Change default variable name for NumberFieldElement -> PARI conversion
-----------------------------+----------------------------------------------
Reporter: jdemeyer | Owner: davidloeffler
Type: defect | Status: new
Priority: major | Milestone: sage-4.7.2
Component: number fields | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies: #11891
-----------------------------+----------------------------------------------
Currently, we get:
{{{
sage: K.<a> = NumberField(x^3 + 2)
sage: (a + 2)._pari_()
Mod(x + 2, x^3 + 2)
}}}
Note that the variable `x` is used. Since polynomials prefer the variable
name `x`, it might be better to use `y` by default (or any other name) for
number field elements.
Also, the `_pari_()` methods for `NumberFieldElement_absolute` and
`NumberFieldElement_relative` are exactly the same, so we should avoid
code duplication.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11904>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.