#11530: PARI initialization of finite field elements mangles Mod
------------------------------+---------------------------------------------
Reporter: rbeezer | Owner: AlexGhitza
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.7.1
Component: algebra | Keywords: _pari_init_, variable name,
finite field
Work_issues: | Upstream: N/A
Reviewer: Jeroen Demeyer | Author: Simon King
Merged: | Dependencies:
------------------------------+---------------------------------------------
Changes (by jdemeyer):
* reviewer: => Jeroen Demeyer
Comment:
Annoying:
{{{
sage: F.<d> = GF(127^3)
sage: d._pari_()
Mod(Mod(1, 127)*a, Mod(1, 127)*a^3 + Mod(3, 127)*a + Mod(124, 127))
sage: d._pari_init_("x")
Traceback (most recent call last)
/usr/local/src/sage-4.7.1.alpha3/<ipython console> in <module>()
TypeError: _pari_init_() takes exactly 1 argument (2 given)
}}}
Patch looks good to me, though (still need to test).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11530#comment:3>
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.