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 | |
---|
1 | proc 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 | |
---|
19 | ring r; |
---|
20 | ideal i=maxideal(2); |
---|
21 | matrix A=matrix(i); |
---|
22 | A=x*A+y*A+z*A; |
---|
23 | i=ideal(A); |
---|
24 | i; |
---|
25 | list c=koszul(0,i),koszul(1,i),koszul(2,i),koszul(3,i),koszul(4,i); |
---|
26 | c; |
---|
27 | isComplex(c); |
---|
28 | LIB "tst.lib";tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.