FUNCTION: Free2Table - convert an element of the free algebra into a table
CALLING SEQUENCE:
- Free2Table(free)
- FREE[Free2Table](free)
-
PARAMETERS:
- free = any element of the free algebra
SYNOPSIS:
- The Free2Table function converts an element of the free algebra into
a table. The table is indexed by lists and each entry corresponding to a
list li is the coefficient of the word w[li] in the free element.
- This function can be useful if one wants to act either on coefficients
or on words. For instance, one can use the map function to act on
coefficients.
- Whenever there is a conflict between the function name Free2Table and
another name used in the same session, use the long form
FREE['Free2Table'].
EXAMPLES:
> with(FREE):
> Free2Table(q^2*w[1,2,1] + w[2,1,1] + q*w[1,2,1]);
table(sparse,[
2
[1, 2, 1] = q + q
[2, 1, 1] = 1
])
SEE ALSO: Table2Free