Ring of gaussian integers modulo n [closed]

asked 2020-01-20 22:35:48 +0200

ed gravatar image

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

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by vdelecroix
close date 2020-01-21 22:18:26.597027

Comments