source: git/Tst/Short/lift_s.tst @ 9fd5f8

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