Would a kind person explain to me why element 1 and element 2
are not equal?  And what I need to do to test if element 1 is zero
in K?

# setup
f = conway_polynomial(2,63)
K.<a> = GF(2**63, name='a', modulus=f)
n = f.degree()
m = 3;
e = (2^n - 1) / (2^m - 1)
c = a^e
conway = conway_polynomial(2,m)

# element 1
print conway(c)   # says 0
print type(c)
print parent(c)
print c in K          # says True

# element 2
print K(0)      # says 0
print type(K(0))
print parent(K(0))

print conway(c) == K(0)    # says False???

-- 
Kate Minola
University of Maryland, College Park

--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to