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 | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "signcond.lib"; |
---|
3 | ring r = 0,(x,y),dp; |
---|
4 | ideal i = (x-2)*(x+3)*x,y*(y-1); |
---|
5 | ideal P = x,y; |
---|
6 | list l = signcnd(P,i); |
---|
7 | size(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: |
---|
10 | l[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: |
---|
15 | l[2][2]; |
---|
16 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.