#20608: S-unit functionality not available from unit_group method
----------------------------+----------------------------------------------
Reporter: kedlaya | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: sage-7.3
Component: number | Keywords: S-unit group, number field
theory | Authors:
Merged in: | Report Upstream: N/A
Reviewers: | Branch:
Work issues: | Dependencies:
Commit: |
Stopgaps: |
----------------------------+----------------------------------------------
The following example is taken from the Sage Reference Guide:
{{{
sage: K.<a> = NumberField(x^6+2)
sage: S = K.ideal(3).prime_factors(); S
[Fractional ideal (3, a + 1), Fractional ideal (3, a - 1)]
sage: SUK = UnitGroup(K,S=tuple(S)); SUK
S-unit group with structure C2 x Z x Z x Z x Z of Number Field in a with
defining polynomial x^6 + 2 with S = (Fractional ideal (3, a + 1),
Fractional ideal (3, a - 1))
}}}
However, this format should also work and currently doesn't:
{{{
sage: K.unit_group() == UnitGroup(K)
True
sage: K.unit_group(S = tuple(S)) == SUK # Should return True
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<ipython-input-5-01b385903c37> in <module>()
----> 1 SUK = K.unit_group(S = tuple(S))
TypeError: unit_group() got an unexpected keyword argument 'S'
}}}
Optional (may require additional discussion): also deprecate the unbound
method `UnitGroup`.
--
Ticket URL: <http://trac.sagemath.org/ticket/20608>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.