Dear GAP Forum,
Nicola Sottocornola wrote:
> let H and K two groups and define
>
> G:=DirectProduct(H,K);
>
> If h is in H and k in K, how can I write the element (h,k) of G?
As product of the images of h and k under the two embeddings in HxK:
Image(Embedding(G,1),h)*Image(Embedding(G,1),k);
This will work regardless of the representation of G.
I hope this helps,
Alexander Hulpke
-- Colorado State University, Department of Mathematics,
Weber Building, Fort Collins, CO 80523, USA
email: hulpke@math.colostate.edu, Phone: ++1-970-4914288