FUNCTION: Table2Free - convert a table into an element of the free algebra
CALLING SEQUENCE:
- Table2Free(t)
- FREE[Table2Free](t)
-
PARAMETERS:
- t = any table denoting an element of the free algebra
SYNOPSIS:
- The Table2Free function converts a table into an element of the
free algebra. The table should be indexed by lists of integers and
each entry corresponding to a word word is interpreted as the
coefficient of w[word] in the expression of the corresponding element in
the free algebra.
- Whenever there is a conflict between the function name Table2Free and
another name used in the same session, use the long form
FREE['Table2Free'].
EXAMPLES:
> with(FREE):
> t:=table([[1,2,1]=q^2+q, [2,1,1]=1]);
t := table([
2
[1, 2, 1] = q + q
[2, 1, 1] = 1
])
> Table2Free(t);
2
(q + q) w[1, 2, 1] + w[2, 1, 1]
SEE ALSO: Free2Table