CoCoA:NewVector

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>