fieker-DuValspielwiese
Last change
on this file since 7496bd was
46976a6,
checked in by Olaf Bachmann <obachman@…>, 26 years ago
|
* added status check to regress.cmd
* added tst_status(1); call to each tst file, just before quit
git-svn-id: file:///usr/local/Singular/svn/trunk@2271 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | //Tests fuer std mit redtail |
---|
2 | " Testbeispiele mit redtail, char=0"; |
---|
3 | //timer=1; |
---|
4 | //test(0); |
---|
5 | int m,n; |
---|
6 | |
---|
7 | ring r1 = 0,(z,y,x),ds; |
---|
8 | poly s1=2x5y+7x2y4+3x2yz3; |
---|
9 | poly s2=1x2y2z2+3z8; |
---|
10 | poly s3=4xy5+2x2y2z3+11x10; |
---|
11 | ideal i=s1,s2,s3; |
---|
12 | ideal j=std(i); |
---|
13 | hilb(j,1); |
---|
14 | option(redSB); |
---|
15 | ideal j1=std(i); |
---|
16 | hilb(j1,1); |
---|
17 | option(redTail); |
---|
18 | ideal j2=std(i); |
---|
19 | hilb(j2,1); |
---|
20 | |
---|
21 | n=size(j); |
---|
22 | number x1,x2; |
---|
23 | for(m=1;m<=n;m=m+1) |
---|
24 | { |
---|
25 | x1=leadcoef(j1[m]); |
---|
26 | x2=leadcoef(j2[m]); |
---|
27 | NF(x2*j1[m]-x1*j2[m],j); |
---|
28 | NF(j[m],j1); |
---|
29 | NF(j1[m],j); |
---|
30 | } |
---|
31 | j2; |
---|
32 | kill r1; |
---|
33 | |
---|
34 | ring r4 =0,(a,b,c,d,e),ds; |
---|
35 | n=6; |
---|
36 | poly s1=a+b+c+d+ea; |
---|
37 | poly s2=de+1cd+1bc+1ae+1ab; |
---|
38 | poly s3=cde+1bcd+1ade+1abe+1abc; |
---|
39 | poly s4=bcde+1acde+1abde+1abce+1abcd; |
---|
40 | poly s5=abcde; |
---|
41 | ideal i=s1,s2,s3,s4,s5,b^n,c^n,d^n,e^n; |
---|
42 | ideal j=std(i); |
---|
43 | option(redTail); |
---|
44 | ideal j1=std(i); |
---|
45 | option(redSB); |
---|
46 | ideal j2=std(i); |
---|
47 | |
---|
48 | n=size(j); |
---|
49 | number x1,x2; |
---|
50 | for(m=1;m<=n;m=m+1) |
---|
51 | { |
---|
52 | x1=leadcoef(j1[m]); |
---|
53 | x2=leadcoef(j2[m]); |
---|
54 | x1*lead(j2[m])-x2*lead(j1[m]); |
---|
55 | x2=leadcoef(j[m]); |
---|
56 | x1*lead(j[m])-x2*lead(j1[m]); |
---|
57 | NF(j[m],j2); |
---|
58 | NF(j2[m],j); |
---|
59 | } |
---|
60 | j2; |
---|
61 | kill r4; |
---|
62 | |
---|
63 | option(redSB); |
---|
64 | ring r= |
---|
65 | 0,(x,y,z),ls; |
---|
66 | poly f=x5+y11+xy9+x3y9+z6-z2x2y2; |
---|
67 | ideal i=jacob(f); |
---|
68 | ideal j=std( i); |
---|
69 | j; |
---|
70 | hilb(j); |
---|
71 | ring r1 = 0,(z,y,x),dp; |
---|
72 | ideal i = x4y4,y4z4; |
---|
73 | i=std(i); |
---|
74 | qring s=i; |
---|
75 | poly s1=2x5y+7x2y3; |
---|
76 | poly s2=1x2y2+3z7; |
---|
77 | poly s3=4xy5+2x2yz3; |
---|
78 | poly s4=x6+y6+z6; |
---|
79 | module M= |
---|
80 | s1*gen(1)+s4*gen(2),s2*gen(2)+s3*gen(3), |
---|
81 | s2*gen(1)+s1*gen(2),s3*gen(2)-s4*gen(3), |
---|
82 | s3*gen(1)+s2*gen(2),s1*gen(1)-s4*gen(3); |
---|
83 | option(redSB); |
---|
84 | module m1=std(M); |
---|
85 | option(redTail); |
---|
86 | option(noredSB); |
---|
87 | module m2=std(M); |
---|
88 | int cc; |
---|
89 | for(cc=1;cc<47;cc=cc+1) |
---|
90 | { |
---|
91 | leadcoef(m2[cc])*lead(m1[cc])-leadcoef(m1[cc])*lead(m2[cc]); |
---|
92 | NF(m1[cc],m2); |
---|
93 | NF(m2[cc],m1); |
---|
94 | } |
---|
95 | |
---|
96 | LIB "tst.lib";tst_status(1);$ |
---|
97 | |
---|
Note: See
TracBrowser
for help on using the repository browser.