Ask Your Question

given an euclidean domain get the euclidean function

asked 2020-03-03 23:49:52 +0200

Paul Elliott gravatar image

I am writing a polymorphic function that implements an algorithm that should work in all euclidean domains. My function should work in all euclidean domains, even ones that have not been implemented yet. My algorithm uses the euclidean function. How do I polymorphically get the canonical euclidean function for my particular domain?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-03-04 11:05:37 +0200

rburing gravatar image

As seen in the documentation for Euclidean domains the Euclidean function is implemented as a method on elements named euclidean_degree:

sage: R.<x> = QQ[]
sage: x.euclidean_degree()
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: 2020-03-03 23:49:52 +0200

Seen: 149 times

Last updated: Mar 04 '20