source: git/Tst/Manual/Dynamic_modules.tst @ 4efdd1c

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