-- -*- M2-comint -*- hash: 10064062232208084253

i1 : R = wordAlgebra(2); -- create a free associative algebra over two letters Lt_1, Lt_2

i2 : f = [1,2]_R; -- [i_1,...,i_k]_R defines a word

i3 : wordFormat f -- display the polynomial in word notation

o3 = [1, 2]

i4 : f = ([1,2]_R ** [1,2]_R); -- compute the shuffle product

i5 : f // wordFormat --display the result in word notation

o5 = 2 [1, 2, 1, 2] + 4 [1, 1, 2, 2]

i6 : 
