source: git/Tst/Manual/cleanunit.tst @ 1ebec3

spielwiese
Last change on this file since 1ebec3 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: 311 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "resbinomial.lib";
3ring r = 0,(x(1),y(2),x(3),y(4)),dp;
4list flag=identifyvar();
5ideal J=x(1)^3*y(2)*x(3)^5*y(4)^8;
6list L=data(J,1,4);
7L[2][1][1];  // list of exponents of the monomial J
8list M=cleanunit(L[2][1][1],4,flag);
9M;           // new list without units
10tst_status(1);$
Note: See TracBrowser for help on using the repository browser.