On May 3, 3:28 pm, eggartmumie <[email protected]> wrote: > Hi, > > as a newbie I am rather irritated about coercion working in 4.5.2 and > not working in 4.6. > In 4.5.2 the following works nicely and up to expectation > > F.<x>=GF(2^4); > for i in range(15): > a = x^i; print a,'with integer representation', int(a);
The field with 16 elements is not a quotient of the integers, so what should the map be? Calling it "representative" is certainly misleading. There happens to be a map defined in your case. Call a.log_to_int(). See a.log_to_int? for help. This map does not have any particularly nice mathematical properties, so it is probably good that it is no longer the conversion corresponding to int(a). It should have been deprecated first, though. There are other maps as well, for instance hash(a). -- 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-support URL: http://www.sagemath.org
