source: git/Tst/Old/matrix.tst @ b35b93

spielwiese
Last change on this file since b35b93 was b35b93, checked in by Olaf Bachmann <obachman@…>, 26 years ago
This commit was generated by cvs2svn to compensate for changes in r1396, which included commits to RCS files with non-trunk default branches. git-svn-id: file:///usr/local/Singular/svn/trunk@1397 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.1 KB
Line 
1pagelength = -1;
2LIB "lib";
3ring r;
4poly p1 = 1x2yz;
5poly p2 = 3x2yz5;
6poly p3 = p2;
7poly p4 =  (2x2yz5)^2;
8poly p5 =  (2x2yz5)^2 - 1x;
9poly p6 =  (2x2yz5)^2 - p2;
10matrix m[2][2] = p1,p2,p3,p6;
11fixmat(m,30);
12" ";
13matrix mm[2][2] = p6,p1,p2,p3;
14fixmat(mm,30);
15" ";
16fixmat(m+mm,30);
17" ";
18fixmat(m-mm,30);
19" ";
20"-------------";
21m = 1,0,0,1;
22fixmat(m,30);
23" ";
24fixmat(m*mm,30);
25matrix t[2][2] = 1x,0,1x,1y;
26fixmat(t,30);
27fixmat(t*m,30);
28//fehler bei Matrix Multiplikation
29ring r;
30matrix a[9][6]=
31-1z,
320,
330,
340,
350,
360,
370,
38-1z,
390,
400,
410,
420,
430,
440,
45-1z,
460,
470,
480,
490,
500,
51-1y,
520,
530,
540,
550,
560,
570,
58-1z,
590,
600,
610,
620,
630,
640,
65-1z,
660,
670,
680,
690,
700,
71-1y,
720,
730,
740,
750,
760,
770,
78-1z,
790,
800,
810,
820,
830,
84-1y,
850,
860,
870,
880,
890,
90-1x;
91matrix b[6][1]=
921z2,
931yz,
941y2,
951xz,
961xy,
971x2;
98a*b;
99// found by GMG (0.8.9g): crash
100int k = 6;
101ring r6(k) = 32003,v(1..6),ds;
102
103ideal i =
104v(4)*v(1)-v(2)^2,
105v(4)*v(2)-v(3)^2-v(1)^(k-4),
106
107v(5)*v(1)-v(3)*v(2),
108v(5)*v(2)-v(4)*v(3),
109v(5)*v(3)-v(4)^2+v(2)*v(1)^(k-5),
110
111v(6)*v(1)-v(4)*v(2),
112v(6)*v(2)-v(4)^2,
113v(6)*v(3)-v(5)*v(4),
114v(6)*v(4)-v(5)^2-v(2)^2*v(1)^(k-6);
115
116matrix M = jacob(i);
117M;
118ideal m = minor(M,4);
119m;
120$;
Note: See TracBrowser for help on using the repository browser.