ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 08 Sep 2012 22:22:25 +0200How to use elements of cartesian product of two groups?https://ask.sagemath.org/question/9306/how-to-use-elements-of-cartesian-product-of-two-groups/I want to have a group G = Sym(4) x Sym(4).
I try this to define G:
" G = CartesianProduct([SymmetricGroup(4)] , [SymmetricGroup(4)]) "
Thank you for help.Sat, 08 Sep 2012 15:47:13 +0200https://ask.sagemath.org/question/9306/how-to-use-elements-of-cartesian-product-of-two-groups/Answer by John Palmieri for <p>I want to have a group G = Sym(4) x Sym(4).
I try this to define G:
" G = CartesianProduct([SymmetricGroup(4)] , [SymmetricGroup(4)]) "
Thank you for help.</p>
https://ask.sagemath.org/question/9306/how-to-use-elements-of-cartesian-product-of-two-groups/?answer=14017#post-id-14017I would try this:
sage: H = SymmetricGroup(4)
sage: G = H.direct_product(H)[0]
Then `G` will be represented as permutations of 1, 2, ..., 8. `H.direct_product(H)` is a tuple, the first entry of which is the actual direct product; the other entries give inclusions of the two factors into the product and projections, likewise.
Sat, 08 Sep 2012 22:22:25 +0200https://ask.sagemath.org/question/9306/how-to-use-elements-of-cartesian-product-of-two-groups/?answer=14017#post-id-14017