source: git/Tst/Manual/powersums.tst @ e74bb4

fieker-DuValspielwiese
Last change on this file since e74bb4 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: 301 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "rootsmr.lib";
3ring r = 0,(x,y,z),dp;
4ideal i = (x-1)*(x-2),(y-1),(z+5); // V(I) = {(1,1,-5),(2,1,-5)}
5i = std(i);
6ideal b = qbase(i);
7poly f = x+y+z;
8list psums = list(-2-3,4+9); // f evaluated at V(I) gives {-3,-2}
9list l = powersums(f,b,i);
10psums;
11l;
12tst_status(1);$
Note: See TracBrowser for help on using the repository browser.