source: git/Tst/Old/m9ex.tst @ 267fe2d

spielwiese
Last change on this file since 267fe2d 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: 1.1 KB
Line 
1  // Two transversal cusps in (k^3,0):
2  ring r2 =0,(x,y,z),ds;
3  ideal i =z2-1y3+x3y,xz,-1xy2+x4,x3z;
4  list resi=mres(i,0);       // computes a minimal resolution
5  print(resi[1]);            // the 1-st module is i minimized
6  print(resi[2]);            // the 1-st syzygy module of i
7  resi[3];                   // the 2-nd syzygy module of i
8  ideal j=minor(resi[2],2);
9  reduce(j,std(i));          // check whether j is contained in i
10  size(reduce(i,std(j)));    // check whether i is contained in j
11  // size(<ideal>) counts the non-zero generators
12  // ---------------------------------------------
13  // The tangent developable of the rational normal curve in P^4:
14  ring P = 0,(a,b,c,d,e),dp;
15  ideal j= 3c2-4bd+ae, -2bcd+3ad2+3b2e-4ace,
16           8b2d2-9acd2-9b2ce+9ac2e+2abde-1a2e2;
17  list L=mres(j,0);
18  print(L[2]);
19  // create an intmat with graded betti numbers
20  intmat B=betti(L);
21  // this gives a nice output of betti numbers
22  print(B,"betti");
23  // the user has acess to all betti numbers
24  // the 2-nd column of B:
25  B[1..4,2];
26LIB "tst.lib";tst_status(1);$
Note: See TracBrowser for help on using the repository browser.