spielwiese
Last change
on this file since 7bb006 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:
748 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | ring r=0,(x,y),dp; |
---|
3 | module mo=[x^2-y^2,1,0,0],[xy+y^2,0,1,0],[y^2,0,0,1]; |
---|
4 | print(mo); |
---|
5 | |
---|
6 | // load dynamic module - at the same time creating package Kstd |
---|
7 | // procedures will be available in the packages Top and Kstd |
---|
8 | LIB("kstd.so"); |
---|
9 | listvar(package); |
---|
10 | |
---|
11 | // set the number of components to be considered to 1 |
---|
12 | module mostd=kstd(mo,1); // calling procedure in Top |
---|
13 | // obviously computation ignored pairs with leading |
---|
14 | // term in the second entry |
---|
15 | print(mostd); |
---|
16 | |
---|
17 | // now consider 2 components |
---|
18 | module mostd2=Kstd::kstd(mo,2); // calling procedure in Kstd |
---|
19 | // this time the previously unconsidered pair was |
---|
20 | // treated too |
---|
21 | print(mostd2); |
---|
22 | |
---|
23 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.