source: git/Tst/Manual/Computation_of_Ext.tst @ 4efdd1c

spielwiese
Last change on this file since 4efdd1c was 894057, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
  • Property mode set to 100644
File size: 1.0 KB
Line 
1LIB "tst.lib"; tst_init();
2  LIB "homolog.lib";
3  ring R=0,(x,y),ds;
4  ideal i=x2-y3;
5  qring q = std(i);      // defines the quotient ring k[x,y]_m/(x2-y3)
6  ideal m = maxideal(1);
7  module T1K = Ext(1,m,m);  // computes Ext^1(R/m,R/m)
8  print(T1K);
9  printlevel=2;             // gives more explanation
10  module T2K=Ext(2,m,m);    // computes Ext^2(R/m,R/m)
11  print(std(T2K));
12  printlevel=0;
13  module E = Ext(1,syz(m),syz(m));
14  print(std(E));
15  //The matrices which we have just computed are presentation matrices
16  //of the modules T2K and E. Hence we may ignore those columns
17  //containing 1 as an entry and see that T2K and E are isomorphic
18  //as expected, but differently presented.
19  //-------------------------------------------
20  ring S=0,(x,y,z),dp;
21  ideal  i = x2y,y2z,z3x;
22  module E = Ext_R(2,i);
23  print(E);
24  // if a 3-rd argument of type int is given,
25  // a list of Ext^k(R/i,R), a SB of Ext^k(R/i,R) and a vector space basis
26  // is returned:
27  list LE = Ext_R(3,i,0);
28  LE;
29  print(LE[2]);
30  print(kbase(LE[2]));
31tst_status(1);$
Note: See TracBrowser for help on using the repository browser.