# Revision history [back]

### how to define Ring of gaussian integers modulo n?

how to define Ring of gaussian integers modulo n? modulo operation defined 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

 2 None vdelecroix 7620 ●20 ●84 ●168 http://www.labri.fr/pe...

### how to define Ring of gaussian integers modulo n?

how to define Ring of gaussian integers modulo n? modulo operation defined 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))*nx-complex(math.floor(E.real),math.floor(E.imag))*n

 3 None vdelecroix 7620 ●20 ●84 ●168 http://www.labri.fr/pe...

### how to define Ring of gaussian integers modulo n?

how to define Ring of gaussian integers modulo n? modulo operation defined 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
x-complex(math.floor(E.real),math.floor(E.imag))*n