ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 07 Jul 2015 17:59:55 -0500subgroup of number field unit grouphttp://ask.sagemath.org/question/27274/subgroup-of-number-field-unit-group/I would like to be able to create subgroups of a unit group generated by given elements. I haven't, thus far, been able to find a way to make this work. The following doesn't work:
N.<a> = NumberField(x^3+2)
G = N.unit_group()
g = G.random_element()
G.subgroup([g])
Can anyone help me find a workaround?
(Note: it appears to be a bug, see [trac.sagemath.org/ticket/18863](http://trac.sagemath.org/ticket/18863), but I'm just looking for a workaround for now.)Kate StangeTue, 07 Jul 2015 17:59:55 -0500http://ask.sagemath.org/question/27274/