#11673: is_unit not properly implemented for algebraic integers
-----------------------------+----------------------------------------------
Reporter: bober | Owner: davidloeffler
Type: defect | Status: new
Priority: major | Milestone: sage-4.7.2
Component: number fields | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------------+----------------------------------------------
Comment(by davidloeffler):
This is because order elements are a subclass of number field elements and
hence inherit various generic methods from
{{{sage.structure.element.FieldElement}}} that give total nonsense. E.g.
{{{
sage: K.<a> = NumberField(x^2 - x - 1)
sage: OK = K.ring_of_integers()
sage: OK(12).divides(OK(13))
True
sage: gcd(OK(12),OK(13))
1
sage: OK(12) // OK(13)
12/13
}}}
It's not clear to me what the right solution is here, given that we need
{{{OrderElement}}} to inherit a great deal of its functionality from
{{{NumberFieldElement}}}.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11673#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.