On 6/9/07, Jason Grout <[EMAIL PROTECTED]> wrote: > > I'm trying to do some symbolic calculations in a field, say GF(3). Is > there a proper way to do this different than my example below? The > approach below of using a fraction field of a polynomial ring > containing my variables over the field I'm working in seems to work > mostly, but there are some errors. Also, coerce(GF(3),1/2) doesn't > seem to work--shouldn't it? GF(3)(1/2) works fine.
Yes. You've found a bug. That the following simple example doesn't work is a bug in Martin Albrecht's new incredibly fast multivariate polynomial arithmetic code: sage: R.<x,y,z> = GF(3)[] sage: R(1/2) Traceback (most recent call last): ... TypeError: Cannot convert sage.rings.integer_mod.IntegerMod_int to sage.rings.rational.Rational I'm sure Martin will fix it very soon. -- William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---