spielwiese
Last change
on this file since bf8015 was
891438c,
checked in by Gerhard Pfister <pfister@…>, 23 years ago
|
*GP: initial release
git-svn-id: file:///usr/local/Singular/svn/trunk@5579 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
367 bytes
|
Line | |
---|
1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | |
---|
4 | |
---|
5 | proc isReg(ideal f, module N) |
---|
6 | { |
---|
7 | int n=nrows(N); |
---|
8 | int i; |
---|
9 | while(i<size(f)) |
---|
10 | { |
---|
11 | i++; |
---|
12 | N=std(N); |
---|
13 | if(size(reduce(quotient(N,f[i]),N))!=0){return(0);} |
---|
14 | N=N+f[i]*freemodule(n); |
---|
15 | } |
---|
16 | return(1); |
---|
17 | } |
---|
18 | |
---|
19 | ring R=0,(x,y,z),dp; |
---|
20 | ideal f=x*(y-1),y,z*(y-1); |
---|
21 | module N=0; |
---|
22 | isReg(f,N); |
---|
23 | |
---|
24 | f=x*(y-1),z*(y-1),y; |
---|
25 | isReg(f,N); |
---|
26 | |
---|
27 | |
---|
28 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.