On Wednesday, March 22, 2017 at 2:26:36 PM UTC-7, [email protected] wrote: > > In my program , I am gonna be feeding integers as arguments from command > line to a sage script that deals with finite fields. > I need to convert these ints to their corresponding finite field > representation. > for example, > in a GF(2^8) : int(3) => a+1 in GF > > I read the manual and I found this method of Givaro fields implementation > integer_representation() > it does the opposite > for example > sage: k(a+1).integer_representation() > 3 > it seems that sage is aware about mapping GF to int representation, > so is there a way to execute my request ? >
sage: k([ZZ(u) for u in reversed(list(6.binary()))]) a^2 + a -- You received this message because you are subscribed to the Google Groups "sage-support" 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 https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
