source: git/Tst/Old/modul1.tst @ 267fe2d

spielwiese
Last change on this file since 267fe2d 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: 752 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;
7//
8poly f=z;
9f+m1;
10f*m2;
11//
12typeof(f);
13typeof(m1);
14typeof(m1+m2);
15typeof(m1[1]);
16typeof(0);
17m1[1]=0;
18typeof(m1[1]);
19// intersect for modules
20m1[1]=[x];
21intersect(m1,m2);
22listvar(all);
23// ideal sum: idCompactify is wrong
24m1+m2;
25ideal i1=x;
26ideal i2=y;
27i1+i2;
28//
29intersect(i1,i2);
30// lead-command
31f=x+z;
32lead(f);
33m1[3]=[f];
34lead(m1);
35lead(m1[1]);
36lead(i1);
37lead(i1+i2);
38vector v=[f,1];
39lead(v);
40// homog-command
41homog(f,z);
42f=f+1;
43homog(f,z);
44homog(v,z);
45m1[1]=v;
46m1[2]=[f];
47homog(m1,z);
48i1=f,z+1;
49homog(i1,z);
50// accessing an ideal/modul as an "open" array
51i1=1,2,3;
52i1;
53i1[15]=15;
54i1;
55m1[5]=[15];
56m1;
57LIB "tst.lib";tst_status(1);$;
Note: See TracBrowser for help on using the repository browser.