Hi,

I saw in the J labs the example for the group Z_4 (cyclic group of order 4).



I am now trying to ape this method to create the group Z_2 x Z_2 (direct 
product of cyclic group order 2 with itself).

This is what I have done so far:


   a =: 0 0 
   b =: 0 1
   c =: 1 0
   d =: 1 1


 f =: 2&|@+


This is the group operator, essentially mod 2 addition.

Q: How can I create a,b,c,d more simply? Perhaps with a single verb, instead of 
explicitly creating each element?



e.g. a verb or train that returns:
0 0
0 1
1 0
1 1

Thanks for your patience.

Jon
                                          
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to