Ask Your Question

Gaussians as Euclidean Domain

asked 2018-11-13 17:48:43 +0100

Jsevillamol gravatar image

updated 2018-11-13 17:49:51 +0100

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()

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-13 19:29:21 +0100

tmonteil gravatar image

updated 2018-11-13 19:32:05 +0100

This is an ongoing process, see trac ticket 23971.

If you are used with Sage development, you can try to apply the changes on your version of Sage and recompile. Otherwise, you can define your own class that inherits from Sage's one and overwrite the _floordiv_ method.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-11-13 17:48:43 +0100

Seen: 248 times

Last updated: Nov 13 '18