
| ACE | BN | BNA | CG | CLG | COMP | FM | FREE | HEKA | IDCA | NCA | NCSF | PART | SFA | SG | SGA | SYMF | TAB | TYP |
FUNCTION: Tox - express any expression in the basis of monomials
CALLING SEQUENCE:
PARAMETERS:
SYNOPSIS:
EXAMPLES:
> with(SP):
> Flag(-1):
> Tox((1+q)^5*X[3,1,2]): # expands the input
> Tox((1+q)^5*X[3,1,2],noexpand): # does not expand (1+q)^5
> Tox((1+q)^5*X[3,1,2],collect): # collects the result
> Tox((1+q)^5*X[3,1,2],noexpand,'X'): # the most efficient
> Tox((1+q)^5*X[3,1,2],'X',collect): # specifies a basis
> Tox((1+q)^5*X[3,1,2],noexpand,'X',collect):
> factor( Tox(q^2*x3*XX[3,1,2]*Y[0,0,1]) );
2
(x3 + x1 + x2) q x3 (x1 - y2) (x1 - y1)
> Tox(X[1,3,2]*XX[2,3,1] - q^2*YY[0,1], collect);
2 2 2 2 2 2 2
q y2 + q y1 - x2 y1 - 2 x2 y1 x1 + x2 x1 + x1 x2 + (y1 - q ) x2
2 2 2
+ (y1 - q ) x1 - x1 y1
SEE ALSO: ToX