#16983: Fix finite field modulus handling
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       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:
  u/jdemeyer/ticket/16983            |  b6a6c669c7f8c1a2efd0da70da1f25c1d60663bc
   Dependencies:  #16934             |     Stopgaps:
-------------------------------------+-------------------------------------
Description changed by jdemeyer:

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 does this implicitly)

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)

 The patch does the above, with lots of cleaning up.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/16983#comment:7>
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.

Reply via email to