Difference between revisions of "CoCoA:NewVector"
From ApCoCoAWiki
(pushing XML rev. 1.46, again) |
(No difference)
|
Latest revision as of 10:02, 24 October 2007
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.
<type>vector</type>