source: git/Tst/Old/intvec.tst @ 7924ee

spielwiese
Last change on this file since 7924ee was 46976a6, checked in by Olaf Bachmann <obachman@…>, 26 years ago
* added status check to regress.cmd * added tst_status(1); call to each tst file, just before quit git-svn-id: file:///usr/local/Singular/svn/trunk@2271 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 527 bytes
Line 
1//
2// intvec.tst
3//
4
5intvec iv = 1,3,5;
6iv;
7iv[1];
8iv[1] + iv[2] + iv[3];
9iv[2] = 42;
10iv;
11intvec ivv = 4, iv;
12ivv;
13iv[iv[1]+1] + ivv[2];
14iv+ivv;
15iv-ivv;
16intmat m=transpose(ivv);
17m;
18intmat n=m+ivv;
19kill iv,ivv,m;
20
21intvec i;
22listvar(all);
23intvec j=1,2,3,4,5,0;
24listvar(all);
25i;
26j;
27j[2];
28j[0];
29j[20];
30i=j;
31i;
32listvar(all);
33i=1..10;
34i;
35i=2,3,6;
36j[i];
37
38intvec i = 1 .. 5;
39i;
40size(i);
41ncols(i);
42nrows(i);
43i + 2;
44i - 2;
45i * 2;
46i / 2;
47i == 2;
48intvec t=i;
49i==t;
50i;
51i + i;
52i;
53i*j;
54transpose(j)*j;
55trace(j);
56LIB "tst.lib";tst_status(1);$
Note: See TracBrowser for help on using the repository browser.