source: git/Tst/Buch/Example_7_6_3.tst @ bf8015

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 
1LIB "tst.lib";
2tst_init();
3
4
5proc 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
19ring R=0,(x,y,z),dp;
20ideal f=x*(y-1),y,z*(y-1);
21module N=0;
22isReg(f,N);
23
24f=x*(y-1),z*(y-1),y;
25isReg(f,N);
26
27
28tst_status(1);$
Note: See TracBrowser for help on using the repository browser.