Ask Your Question

# Revision history [back]

### Gaussians as Euclidean Domain

Follow up to a comment by @nbruin in a previous question:

One reason that Euclidean division isn't available by default on ZI is because as far as sage is concerned, it's a quadratic ring, and those generally are not euclidean rings. There are some quadratic rings that are, but most of them are only euclidean with rather obscure euclidean norms. The fact that Z[i] is euclidean with the "standard" norm is really quite anomalous among quadratic rings.

If you're interested in studying euclidean rings you probably should write some utility functions yourself to help you with it (or search if such utilities are already available). You could even consider writing a new ring subclass for Euclidean rings. To illustrate that sage doesn't know that ZI is a euclidean domain:

sage: ZI in EuclideanDomains()
False


context: ZI = QuadraticField(-1, 'I').ring_of_integers()

My question is: Is there a built in way in SageMath to work with Gaussian integers as an Euclidean domain?

### Gaussians as Euclidean Domain

Follow up to a comment by @nbruin in a previous question:

One reason that Euclidean division isn't available by default on ZI is because as far as sage is concerned, it's a quadratic ring, and those generally are not euclidean rings. There are some quadratic rings that are, but most of them are only euclidean with rather obscure euclidean norms. The fact that Z[i] is euclidean with the "standard" norm is really quite anomalous among quadratic rings.

If you're interested in studying euclidean rings you probably should write some utility functions yourself to help you with it (or search if such utilities are already available). You could even consider writing a new ring subclass for Euclidean rings. To illustrate that sage doesn't know that ZI is a euclidean domain:

sage: ZI in EuclideanDomains()
False


context: ZI = QuadraticField(-1, 'I').ring_of_integers()

My question is: Is there a built in way in SageMath to work with Gaussian integers as an Euclidean domain?

### Gaussians as Euclidean Domain

Follow up to a comment comment by @nbruin @nbruin in a previous question:

One reason that Euclidean division isn't available by default on ZI is because as far as sage is concerned, it's a quadratic ring, and those generally are not euclidean rings. There are some quadratic rings that are, but most of them are only euclidean with rather obscure euclidean norms. The fact that Z[i] is euclidean with the "standard" norm is really quite anomalous among quadratic rings.

If you're interested in studying euclidean rings you probably should write some utility functions yourself to help you with it (or search if such utilities are already available). You could even consider writing a new ring subclass for Euclidean rings. To illustrate that sage doesn't know that ZI is a euclidean domain:

sage: ZI in EuclideanDomains()
False


context: ZI = QuadraticField(-1, 'I').ring_of_integers()

My question is: Is there a built in way in SageMath to work with Gaussian integers as an Euclidean domain?