source: git/Tst/Manual/linReduce.tst @ 159ca3

fieker-DuValspielwiese
Last change on this file since 159ca3 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: 403 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "bfun.lib";
3ring r = 0,(x,y),dp;
4ideal I = 1,y,xy;
5poly f = 5xy+7y+3;
6poly g = 7x+5y+3;
7linReduce(g,I);     // reduces tails
8linReduce(g,I,0,0); // no reductions of tails
9linReduce(f,I,1);   // reduces tails and shows reductions used
10f = x3+y2+x2+y+x;
11I = x3-y3, y3-x2,x3-y2,x2-y,y2-x;
12list l = linReduce(f,I,1);
13l;
14module M = I;
15f - (l[1]-(M*l[2])[1,1]);
16tst_status(1);$
Note: See TracBrowser for help on using the repository browser.