Ask Your Question
1

given an euclidean domain get the euclidean function

asked 5 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 5 years ago

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
Preview: (hide)
link

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: 5 years ago

Seen: 267 times

Last updated: Mar 04 '20