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
| 1 | initial version |
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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.