On Thu, 26 Mar 2009 00:24:00 +0100, Martin Geisler <m...@daimi.au.dk> wrote:

"Atle Mauland" <atl...@stud.ntnu.no> writes:

Hi all!

Is there any way of getting the value of the Zp-variable as an
integer? I need to calculate some values mod p...

You can access the modulus attribute:

from viff.field import GF
Zp = GF(131)
Zp.modulus
131

Thx all for answers, I was looking for the modulus attribute :)

_______________________________________________
viff-devel mailing list (http://viff.dk/)
viff-devel@viff.dk
http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk

Reply via email to