up previous next
compts

list of components of a ModuleElem

Syntax
compts(V: MODULEELEM): LIST
Comps(V: MODULEELEM): LIST

Description


This function returns the list of components of a ModuleElem V. It is like converting a ModuleElem into a generic list. Note that a ModuleElem is a more structured object than a generic list.

Example
/**/  use R ::= QQ[x,y,z];
/**/  R3 := NewFreeModule(R,3);
/**/  V := ModuleElem(R3, ***[3x^2+4y, 2x-5z^3, 2x+2y]***);  V;
[3*x^2 +4*y, -5*z^3 +2*x, 2*x +2*y]
/**/  type(V);
MODULEELEM

/**/  compts(V);
[3*x^2 +4*y, -5*z^3 +2*x, 2*x +2*y]
/**/ type(compts(V));
LIST

See Also