Go to the first, previous, next, last section, table of contents.


newvect

newvect(len[,list])
:: 長さ len のベクトルを生成する.
return
ベクトル
len
自然数
list
リスト
[0] A=newvect(5);
[ 0 0 0 0 0 ]
[1] A=newvect(5,[1,2,3,4,[5,6]]);
[ 1 2 3 4 [5,6] ]
[2] A[0];
1
[3] A[4];
[5,6]
[4] size(A);
[5]
[5] def afo(V) { V[0] = x; }
[6] afo(A)$
[7] A;
[ x 2 3 4 [5,6] ]
参照
section newmat, section size, section vtol.


Go to the first, previous, next, last section, table of contents.