spielwiese
Last change
on this file was
894057,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
|
-
Property mode set to
100644
|
File size:
379 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | int ro = 3; |
---|
3 | ring r = 32003,(x,y,z),dp; |
---|
4 | poly f=xyz; |
---|
5 | poly g=z*f; |
---|
6 | ideal i=f,g,g^2; |
---|
7 | matrix m[ro][3] = x3y4, 0, i, f ; // a 3 x 3 matrix |
---|
8 | m; |
---|
9 | print(m); |
---|
10 | matrix A; // the 1 x 1 zero matrix |
---|
11 | matrix B[2][2] = m[1..2, 2..3]; //defines a submatrix |
---|
12 | print(B); |
---|
13 | matrix C=m; // defines C as a 3 x 3 matrix equal to m |
---|
14 | print(C); |
---|
15 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.