spielwiese
Last change
on this file since c2f6bd 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:
711 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | ring R = 32003,(x,y,z),dp; |
---|
3 | R; |
---|
4 | x > y; |
---|
5 | y > z; |
---|
6 | int a,b,c,t = 1,2,-1,4; |
---|
7 | poly f = a*x3+b*xy3-c*xz3+t*xy2z2; |
---|
8 | f; |
---|
9 | ideal i = jacob(f); // Jacobian Ideal of f |
---|
10 | ideal si = std(i); // compute Groebner basis |
---|
11 | int dimi = dim(si); |
---|
12 | string s = "The dimension of V(i) is "+string(dimi)+"."; |
---|
13 | s; |
---|
14 | LIB "primdec.lib"; // load library primdec.lib |
---|
15 | list L = primdecGTZ(i); |
---|
16 | size(L); // number of prime components |
---|
17 | L[1][1]; // first primary component |
---|
18 | L[1][2]; // corresponding prime component |
---|
19 | ring Rloc = 32003,(x,y,z),ds; // ds = local monomial ordering |
---|
20 | ideal i = imap(R,i); |
---|
21 | dim(std(i)); |
---|
22 | map phi = R, x-2000, y-6961, z-7944; |
---|
23 | dim(std(phi(i))); |
---|
24 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.