source: git/Tst/Manual/signcnd.tst @ ef52d6

fieker-DuValspielwiese
Last change on this file since ef52d6 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: 600 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "signcond.lib";
3ring r = 0,(x,y),dp;
4ideal i = (x-2)*(x+3)*x,y*(y-1);
5ideal P = x,y;
6list l = signcnd(P,i);
7size(l[1]);     // = the number of sign conditions of P on V(i)
8//Each element of l[1] indicates a sign condition of the polynomials of P.
9//The following means P[1] > 0, P[2] = 0:
10l[1][2];
11//Each element of l[2] indicates how many elements of V(I) give rise to
12//the sign condition expressed by the same position on the first list.
13//The following means that exactly 1 element of V(I) gives rise to the
14//condition P[1] > 0, P[2] = 0:
15l[2][2];
16tst_status(1);$
Note: See TracBrowser for help on using the repository browser.