source: git/Tst/Old/koszul.tst @ 46976a6

spielwiese
Last change on this file since 46976a6 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: 465 bytes
Line 
1proc isComplex (list c)
2{
3  int i;
4  module @test;
5  for (i=1;i<=size(c)-1;i=i+1)
6  {
7    @test=c[i]*c[i+1];
8    if (size(@test)!=0)
9    {
10      @test;
11      "argument is not a complex at position",i;
12      return(0);
13    }
14  }
15  "argument is a complex";
16  return(1);
17}
18
19ring r;
20ideal i=maxideal(2);
21matrix A=matrix(i);
22A=x*A+y*A+z*A;
23i=ideal(A);
24i;
25list c=koszul(0,i),koszul(1,i),koszul(2,i),koszul(3,i),koszul(4,i);
26c;
27isComplex(c);
28LIB "tst.lib";tst_status(1);$
Note: See TracBrowser for help on using the repository browser.