up previous next
ModuleElem

create a module element

Syntax
ModuleElem(M: MODULE, L: LIST): MODULEELEM

Description
This function returns the MODULEELEM (called Vector in CoCoA-4) in the module M whose components are the components of the list L.

Example
/**/  use R ::= QQ[x];
/**/  R3 := NewFreeModule(R,3);
/**/  V := ModuleElem(R3, [1, x, x^2]);  V;
[1, x, x^2]
/**/  type(V);
MODULEELEM
/**/  zero(R3);
[0, 0, 0]

See Also