source: git/Tst/Short/lift_s.tst @ 564136

spielwiese
Last change on this file since 564136 was c6963ca, checked in by Hans Schoenemann <hannes@…>, 14 years ago
pagelength removed git-svn-id: file:///usr/local/Singular/svn/trunk@13176 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.0 KB
Line 
1LIB "tst.lib";
2tst_init();
3//
4// test script for lift command
5//
6ring r1 = 32003,(x,y,z),(c,dp);
7r1;
8"-------------------------------";
9poly s1=y7+x3+xyz+z2;
10ideal i1=jacob(s1);
11ideal i2=std(i1);
12ideal i=3x2+yz,7y6+2x2y+5xz;
13i;
14i1;
15i2;
16s1;
17matrix T=lift(i2,i);
18T;
19matrix(i)-matrix(i2)*T;
20"-----------------------------";
21poly s2=x4+y3+z6+2xyz;
22ideal i3=jacob(s2);
23ideal i4=std(i3);
24s2;
25i3;
26i4;
27matrix T1=lift(i4,i);
28T1;
29matrix(i)-matrix(i4)*T1;
30"-------------------------------";
31listvar(all);
32kill r1;
33//From:    Trond St|len Gustavsen <stolen@math.uio.no>
34
35ring r = 0, (x(1..5)), ds;
36matrix m[2][4]= x(1), x(2), x(3), x(4), x(2), x(3), x(4), x(5);
37
38ideal j = minor(m, 2);
39ideal i = std(j);
40
41list ires = mres(i, 2);
42def ires(1..2) = ires[1..2];
43kill ires;
44matrix jaco = jacob(ires(1));
45qring s = i;
46s;
47matrix mat = matrix(fetch(r,ires(2)));
48matrix imat = transpose(mat);
49matrix jac = fetch(r, jaco);
50
51list ll = nres(module(imat),3);
52def imatres(1..3) = ll[1..3];
53
54matrix T = lift(imatres(2), module(jac));
55T;
56kill r;
57tst_status(1);$;
Note: See TracBrowser for help on using the repository browser.