Hi
I have tried to fasten up the modluar arithmetic at the point you
mentioned:
> for i in range(1,((p-1)/2)+1):
> e=i^(p-1-t)%p
in the following way:
S=Integers(p)
for i in range(1,((p-1)/2)+1):
e=S(i)^(p-1-t)
but then I get a error message at the following point:
e0=e%4096
error message:
Traceback (most recent call last):
e0=e%4096
File "integer_mod.pyx", line 952, in
integer_mod.IntegerMod_int.__mod__
ZeroDivisionError: reduction modulo right not defined.
I don´t see the zero division at this point, why do I get this error
message?
Daniel Köhl
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---