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, [3*x^2+4*y, 2*x-5*z^3, 2*x+2*y]);  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