source: git/Tst/Manual/annRat.tst @ 894057

spielwiese
Last change on this file since 894057 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: 514 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "dmodapp.lib";
3ring r = 0,(x,y),dp;
4poly g = 2*x*y;  poly f = x^2 - y^3;
5def B = annRat(g,f);
6setring B;
7LD;
8// Now, compare with the output of Macaulay2:
9ideal tst = 3*x*Dx + 2*y*Dy + 1, y^3*Dy^2 - x^2*Dy^2 + 6*y^2*Dy + 6*y,
109*y^2*Dx^2*Dy-4*y*Dy^3+27*y*Dx^2+2*Dy^2, 9*y^3*Dx^2-4*y^2*Dy^2+10*y*Dy -10;
11option(redSB); option(redTail);
12LD = groebner(LD);
13tst = groebner(tst);
14print(matrix(NF(LD,tst)));  print(matrix(NF(tst,LD)));
15// So, these two answers are the same
16tst_status(1);$
Note: See TracBrowser for help on using the repository browser.