source: git/Tst/Manual/Dynamic_modules.tst

spielwiese
Last change on this file was c453b7d, checked in by Hans Schoenemann <hannes@…>, 2 years ago
fix: tests
  • Property mode set to 100644
File size: 775 bytes
RevLine 
[894057]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
[c453b7d]8LIB("partialgb.so");
[894057]9listvar(package);
10
11// set the number of components to be considered to 1
[c453b7d]12module mostd=partialStd(mo,1);        // calling procedure in Top
[894057]13                    // obviously computation ignored pairs with leading
14                    // term in the second entry
15print(mostd);
16
17// now consider 2 components
[c453b7d]18module mostd2=Partialgb::partialStd(mo,2); // calling procedure in partialgb
[894057]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.