spielwiese
Last change
on this file since 46976a6 was
46976a6,
checked in by Olaf Bachmann <obachman@…>, 25 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.0 KB
|
Line | |
---|
1 | LIB "matrix.lib"; LIB "sing.lib"; |
---|
2 | int n = 4; |
---|
3 | int m = 3; |
---|
4 | int N = n*(n+1)/2; // will become number of variables |
---|
5 | ring R = 32003,x(1..N),dp; |
---|
6 | matrix X = symmat(n); // proc from matrix.lib |
---|
7 | // creates the symmetric generic nxn matrix |
---|
8 | print(X); |
---|
9 | ideal J = minor(X,m); |
---|
10 | J=std(J); |
---|
11 | // Kaehler differentials D_k(R) |
---|
12 | // of R=k[x1..xn]/J: |
---|
13 | module D = J*freemodule(N)+transpose(jacob(J)); |
---|
14 | ncols(D); |
---|
15 | nrows(D); |
---|
16 | // |
---|
17 | // Note: D is a submodule with 110 generators of a free module |
---|
18 | // of rank 10 over a polynomial ring in 10 variables. |
---|
19 | // Compute a full resolution of D with sres. |
---|
20 | // This takes about 17 sec on a Mac PB 520c and 2 sec an a HP 735 |
---|
21 | int time = timer; |
---|
22 | module sD = std(D); |
---|
23 | list Dres = sres(sD,0); // the full resolution |
---|
24 | timer-time; // time used for std + sres |
---|
25 | intmat B = betti(Dres); |
---|
26 | print(B,"betti"); |
---|
27 | N-ncols(B)+1; // the desired depth |
---|
28 | killall(); |
---|
29 | LIB "tst.lib";tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.