#16983: Fix finite field modulus handling
----------------------------------+------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.4
Component: finite rings | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: #16934 | Stopgaps:
----------------------------------+------------------------
Changes (by {'newvalue': u'Jeroen Demeyer', 'oldvalue': ''}):
* author: => Jeroen Demeyer
Old description:
> For prime finite fields, we should support a custom modulus (internally
> in Sage, we don't need to use this modulus in the backend):
> {{{
> sage: x = polygen(GF(7))
> sage: k = GF(7, modulus=x+5)
> sage: k.modulus()
> x + 6
> sage: k.gen()
> 1
> }}}
>
> We should also make the modulus monic:
> {{{
> sage: x = polygen(GF(7))
> sage: k.<a> = GF(7^2, modulus=2*x^2-3, impl="pari_ffelt")
> sage: k.modulus()
> 2*x^2 + 4
> }}}
> (the Givaro backend already does this)
New description:
For prime finite fields, we should support a custom modulus (internally in
Sage, we don't need to use this modulus in the backend):
{{{
sage: x = polygen(GF(7))
sage: k = GF(7, modulus=x+5)
sage: k.modulus()
x + 6
sage: k.gen()
1
}}}
We should also make the modulus monic:
{{{
sage: x = polygen(GF(7))
sage: k.<a> = GF(7^2, modulus=2*x^2-3, impl="pari_ffelt")
sage: k.modulus()
2*x^2 + 4
}}}
(the Givaro backend does this implicitly)
--
--
Ticket URL: <http://trac.sagemath.org/ticket/16983#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 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.