source: git/dyn_modules/syzextra/ederc.tst @ b5d6f0

spielwiese
Last change on this file since b5d6f0 was b5d6f0, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Use .so dynamic modules (no more _g.so[g]?!)
  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[5c0183]1/*
2            input ideal:
3           
4            i[1]=xz2-y2t
5            i[2]=x2y-z2t
6            i[3]=yz3-x2t2
7           
8            current ring:
9           
10            //   characteristic : 0
11            //   number of vars : 4
12            //        block   1 : ordering IS(0)
13            //        block   2 : ordering dp
14            //                  : names    x y z t
15            //        block   3 : ordering C
16            //        block   4 : ordering IS(1)
17           
18           
19            trivial syzygies:
20           
21            1. SYZ  x2y*gen(1)+xz2*gen(2)-y2t*gen(2)-z2t*gen(1)
22            2. SYZ  yz3*gen(1)-x2t2*gen(1)+xz2*gen(3)-y2t*gen(3)
23            3. SYZ  yz3*gen(2)-x2t2*gen(2)+x2y*gen(3)-z2t*gen(3)
24*/
25echo = 2;
26
27"ndebug?: ", system("with", "ndebug");
28"om_ndebug?: ", system("with", "om_ndebug");
29
30if( system("with", "ndebug") )
31{
32  "Loading the Release version!";
[1114d2]33  LIB("syzextra.so");
[5c0183]34}
35else
36{
37  "Loading the Debug version!";
[b5d6f0]38  LIB("syzextra.so");
[5c0183]39}
40
41noop();
42
43ring r = 0,(x, y, z, t), (dp, C);
44
45
46DetailedPrint(r);
47
48vector p = 3*(x +y +z) * gen(5);
49
50DetailedPrint(p, 3);
51
52// vector v =3 *xyz * [0, 0, 1, x, y, z];v;DetailedPrint(v, 2);
53
54leadmonom(p);
55leadcomp(p);
56leadrawexp(p);
57
58
59ideal i;
60 
61i[1]=xz2-y2t;
62i[2]=x2y-z2t;
63i[3]=yz3-x2t2;
64
65DetailedPrint(i, 2);
66
67// std(i);
68
69
70def S = MakeInducedSchreyerOrdering(1); setring S;
71
72DetailedPrint(basering);
73
74module i;
75 
76i[1]=xz2-y2t;
77i[2]=x2y-z2t;
78i[3]=yz3-x2t2;
79
80DetailedPrint(i, 2);
81
82
83 // def l = res(i, 0); DetailedPrint(l);
84
85def L =  lead(i);
86L;
87
88homog(L);
89attrib(L, "isHomog");
90
91DetailedPrint(L[1] + L[2] + L[3]);
92
93SetInducedReferrence(L);
94
95DetailedPrint(basering);
96
97
98print( GetInducedData() );
99
100"a??";
101vector a = [-1,-2,-3,-4];
102"a: ";
103DetailedPrint(a, 4);
104
105vector v =  yz3*gen(2)-x2t2*gen(2)+xz2*gen(4)-y2t*gen(4);
106v;
107
108DetailedPrint(v, 4);
109
110
111DetailedPrint(yz3 * L[1]);
112
113DetailedPrint(x2t2 * L[1]);
114
115DetailedPrint(xz2 * L[3]);
116
117DetailedPrint(y2t * L[3]);
118
119DetailedPrint(yz3 * L[1] +  2* x2t2 * L[1] + 3 * xz2 * L[3] + 4*y2t * L[3], 4);
120
121
122
123x2y*gen(2)+xz2*gen(3)-y2t*gen(3)-z2t*gen(2);
124DetailedPrint(_);
125// xz2*gen(3)+x2y*gen(2)-y2t*gen(3)-z2t*gen(2);
126
127
128yz3*gen(2)-x2t2*gen(2)+xz2*gen(4)-y2t*gen(4);
129DetailedPrint(_);
130// xz2*gen(4)+yz3*gen(2)-y2t*gen(4)-x2t2*gen(2)
131
132
133yz3*gen(3)-x2t2*gen(3)+x2y*gen(4)-z2t*gen(4);
134DetailedPrint(_);
135// x2y*gen(4)+yz3*gen(3)-z2t*gen(4)-x2t2*gen(3)
136
[643877c]137exit;
138
[5c0183]139
Note: See TracBrowser for help on using the repository browser.