I don't know what this option actually does, but both seem to work.

sage:
groups.misc.AdditiveAbelian([2,2,2,3],remember_generators=False)(vector([1,1,1,1]))
(1, 1, 1, 1)
sage:
groups.misc.AdditiveAbelian([2,2,2,3],remember_generators=True)(vector([1,1,1,1]))
(1, 1, 1, 1)

Also, why should vector([1,1,1,1]) be recognised and not [1,1,1,1] ?

Nathann


On 26 April 2014 18:14, John Cremona <[email protected]> wrote:

> sage: A = AdditiveAbelianGroup([2,2,2,3], remember_generators=True)
> sage: A.gens()
> ((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1))
> sage: A(vector([1,1,1,1]))
> (1, 1, 1, 1)
> sage: A(vector([1,1,1,1])).order()
> 6
>
> Read AdditiveAbelianGroup? for more.
>
> John
>
>
>
> On 26 April 2014 16:16, Nathann Cohen <[email protected]> wrote:
>
>> Hello everybody !
>>
>> I  am back again with my group problems. I need to see 4-uples as
>> elements of the additive group Z/3Z x Z/2Z x Z/2Z x Z/2Z, how can I do that
>> ? My problem is that Sage converts the group  I  want into Z/2Z x Z/2Z x
>> Z/6Z and I don't want that ....
>>
>> sage: g=groups.misc.AdditiveAbelian([2,2,2,3]); g
>> Additive abelian group isomorphic to Z/2 + Z/2 + Z/6
>> sage: g([1,1,1,1])
>> ...
>> TypeError: length of v must be at most the number of rows of self
>>
>> Thanks for your help !
>>
>> Nathann
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-support" 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 http://groups.google.com/group/sage-support.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/yexpjig9BSg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" 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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to