Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ring of gaussian integers modulo n

how to define Ring of gaussian integers modulo n? modulo operation define as :

def modGI(x,n): import math E=(x*n.conjugate())/(n*n.conjugate()) return x-complex(math.floor(E.real),math.floor(E.imag))*n