source: git/Tst/Old/modul1.tst @ b4cbc2

fieker-DuValspielwiese
Last change on this file since b4cbc2 was 8a2e90, checked in by Hans Schoenemann <hannes@…>, 6 years ago
fix: module * module is undefined
  • Property mode set to 100644
File size: 775 bytes
Line 
1//test modul oprations, wrong in 0.8.2, 0.8.2a
2ring r=32003,(x,y,z),(c,dp);
3module m1=[x];
4module m2=[y];
5m1+m2;
6m1*m2;
7matrix(m1)*matrix(m2);
8//
9poly f=z;
10f+m1;
11f*m2;
12//
13typeof(f);
14typeof(m1);
15typeof(m1+m2);
16typeof(m1[1]);
17typeof(0);
18m1[1]=0;
19typeof(m1[1]);
20// intersect for modules
21m1[1]=[x];
22intersect(m1,m2);
23listvar(all);
24// ideal sum: idCompactify is wrong
25m1+m2;
26ideal i1=x;
27ideal i2=y;
28i1+i2;
29//
30intersect(i1,i2);
31// lead-command
32f=x+z;
33lead(f);
34m1[3]=[f];
35lead(m1);
36lead(m1[1]);
37lead(i1);
38lead(i1+i2);
39vector v=[f,1];
40lead(v);
41// homog-command
42homog(f,z);
43f=f+1;
44homog(f,z);
45homog(v,z);
46m1[1]=v;
47m1[2]=[f];
48homog(m1,z);
49i1=f,z+1;
50homog(i1,z);
51// accessing an ideal/modul as an "open" array
52i1=1,2,3;
53i1;
54i1[15]=15;
55i1;
56m1[5]=[15];
57m1;
58LIB "tst.lib";tst_status(1);$;
Note: See TracBrowser for help on using the repository browser.