ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 08 Sep 2012 15:22:25 -0500How to use elements of cartesian product of two groups?http://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 08:47:13 -0500http://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>
http://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 15:22:25 -0500http://ask.sagemath.org/question/9306/how-to-use-elements-of-cartesian-product-of-two-groups/?answer=14017#post-id-14017