CoCoA:NewVector

From ApCoCoAWiki

NewVector

create a new vector

Description

The second function returns a vector of length N, each of whose

components is E. The first function, in which E is not indicated,

returns a vector of length N filled with zeros.

Example

  Use R ::= Q[x,y];
  NewVector(4);
Vector(0, 0, 0, 0)
-------------------------------
  NewVector(3,x^2+y);
Vector(x^2 + y, x^2 + y, x^2 + y)
-------------------------------

Syntax

NewVector(N:INT):VECTOR
NewVector(N:INT,E:OBJECT):VECTOR

where E is cast-able to POLY.

Vector

   <type>vector</type>