#19531: Add conversion from fields to binary-like strings
-------------------------------------------------+-------------------------
       Reporter:  tgagne                         |        Owner:
           Type:  enhancement                    |       Status:  new
       Priority:  major                          |    Milestone:  sage-6.10
      Component:  finite rings                   |   Resolution:
       Keywords:  finite field, hex strings,     |    Merged in:
  binary strings                                 |    Reviewers:
        Authors:                                 |  Work issues:
Report Upstream:  N/A                            |       Commit:
         Branch:                                 |     Stopgaps:
   Dependencies:                                 |
-------------------------------------------------+-------------------------

Comment (by nbruin):

 Replying to [comment:7 jdemeyer]:
 > The finite field:
 > {{{
 > sage: K.<a> = GF(2^8)
 > sage: K[9]
 > a^3 + 1
 > sage: K[0x9]
 > a^3 + 1
 > }}}
 Uh ... what? Where does this enumeration order on K come from? I think you
 mean the element for which the coefficient vector with respect to the
 power basis on a corresponds to the bit vector corresponding to the binary
 representation of the index, but that requires further adaptations. Surely
 we'd need it to bring agreement with
 {{{
 sage: list(GF(2^8,name="a"))[9]
 a^5 + a^4 + a^3 + a
 }}}
 which seems motivated by
 {{{
 sage: K.<a> = GF(2^8)
 sage: L=list(K)
 sage: M= [0] + [a^i for i in [1..255]]
 sage: L==M
 True
 }}}

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