Ask Your Question
1

given an euclidean domain get the euclidean function

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

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
0

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

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

Stats

Asked: 2020-03-03 23:49:52 +0100

Seen: 174 times

Last updated: Mar 04 '20